I found similar question here: How to load a UIView using a nib file created with Interface Builder.
But my problem is a little different. I need to load my custom view into 2 or 3 different UIViewControllers. Here is there answer that I like https://stackoverflow.com/a/4055353/602011 But I cannot set for myViewXib FileOwner three UIViewCOntrollers together. How to be?
I found similar question here: How to load a UIView using a nib file
Share
In IB, you can set the FileOwner class type to UIViewController, then load the NIB using NSBundle’s loadNibNamed:owner:options: method and iterate through the objects returned in order to modify or reference any child UIViews in the NIB.