View Full Version : tabBarController & nib

Jul 18, 2008, 08:21 AM
I have been pulling my hair out all last night on this one...

I have a tab bar app and in IB I created a tabBar app with 4 tabs, 4 different nibs that are the different views. Everything works OK when I run the app. However, I want to modify one or more of the views at runtime (such as adding a button). However, the loadView, viewDidLoad, or awakeFromNib never get called. What am I missing?

I am using the following in the init of the view:
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {
// Initialization code
return self;