1

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.

user2514963
  • 156
  • 3
  • 19

2 Answers2

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.

Community
  • 1
  • 1
lseidman
  • 156
  • 3
-1

Try this. I'm not sure that adding UIView in Interface Builder will work, but adding subview programmatically always works.

Community
  • 1
  • 1
Maksim
  • 2,054
  • 3
  • 17
  • 33