tabBarController & nib

Discussion in 'iPhone/iPad Programming' started by iphoneGuy, Jul 18, 2008.

  1. macrumors member

    Joined:
    Oct 26, 2007
    Location:
    [[NSLocation alloc] initWithCity: Chicago]
    #1
    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:
    Code:
    - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
    	if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {
    		// Initialization code
    	}
    	return self;
    }
    
     

Share This Page