I have a ViewController that includes its own .nib file, I am wanting to load another .nib into this ViewController that will be a menu of sorts... however I am just not sure how to do this and was hoping for some help.
Before I show you the code I will explaine what I have done.
- I have a UIViewController with a Nib that is my main view.
- I have created another nib which is going to be a menu that appears as a subview to the main view
- I have changed this nibs class to the UIViewController of the main view so that it can see all of the same IBActions and outlets.
I have then run the code below trying to load the seperate nib as a subview however when I run it the subview of the other nib is not showing up....
jumpBarPortraitNib = [[UIView alloc] initWithFrame:CGRectMake(0.0, 50.0, 320.0, 367.0)]; // add jumpbar container to view [self.view insertSubview:jumpBarPortraitNib belowSubview:actionTabBar];