Reputation: 732
I am a beginner on mobile dev and i am thinking about the structure of my iPhone app. Its a social app and there is a profile menu like in instagram. Is there a way to create a view and extends it for the personal profile and the profile of other users. I don't want to duplicate the content in the tab view to build the same one in a modal.
Upvotes: 0
Views: 112
Reputation: 536027
Construct the view in a .xib
file, which will be turned into a nib file in the running app. Each time you load that nib, you get new copy of the view (and all its subviews, of course).
Upvotes: 2