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:
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:
Code:
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {
// Initialization code
}
return self;
}