In a project I’m working on, I have the need of a base UI. So i made a baseViewController, made the view in a xib-file and set the baseViewController’s view to be the view in the xib-file.
Then I want to inherit that view from the xib-file to my other controllers, but it does not work. Is this impossible? Or have I just missed something?
What I ended up doing was creating a container view controller with a nib, and then adding all other view controllers as child view controllers when it was needed, and removing them when I was done with them. See this tutorial: http://www.cocoanetics.com/2012/04/containing-viewcontrollers/