I have a uiview that has all my buttons, that has its controller. How can I include the button view in all my uiviews using the interface builder? The buttons must work when click. The purpose is to increase maintainability.
Asked
Active
Viewed 116 times
1
-
Are the buttons created i code or in interface builder? – David Rönnqvist May 05 '12 at 08:01
2 Answers
0
You can create a custom UIView in interface builder like this: Loading custom UIView from nib, all subviews contained in nib are nil?
Then add your custom view to other views in IB by adding a normal UIView and changing the class to your subclass.
-1
Try this. I'm not sure that adding UIView in Interface Builder will work, but adding subview programmatically always works.
-
If I do [self.view addSubView: btn] the buttons get seen but my profile items does not get seen... – user2514963 May 05 '12 at 09:37