So I'm developing an app based around a navigation view. At various times in the app I'm showing and hiding buttons in the navigationBar. As of now I've created a separate button for each action needed and set it hidden by default, showing/hiding as necessary.
This morning I though of an alternative: Say I had 10 buttons that display in the toolbar at different times throughout my app. I could reduce the numbers of buttons I actually instantiate by reusing buttons that have the same purpose, (a done button for a form for example).
So say I have a 3 done buttons for 3 separate forms. I could essentially use the same button for each form by setting the action of that button to be relevant to the form.
Anyone have any thoughts on what might be better for performance? more buttons super specific, less buttons with dynamically set actions....