user195958
user195958

Reputation:

How to edit the MainWindow.xib (to change the default view it loads)

Hi I am trying to change the default view MainWindow.xib loads. I am using view based app. I changed the app delegate file, added my new view as a subview to the main window. but in interface builder it still says mainwindow.xib loads from the default view not my newly added view. (BTW I added a new xib file for my new view and that is the one I want to load at startup.)

thanks.

Upvotes: 2

Views: 5590

Answers (2)

MacTouch
MacTouch

Reputation: 709

Change the 'Main nib file base name' in the Info.plist of your App too if you have another Main.XIB.

Upvotes: 0

Colin Gislason
Colin Gislason

Reputation: 5589

If you want to change from using MyAppViewController.xib to `MyOtherView.xib', you also need to change the class of the view controller in Interface Builder. You can do this by selecting the view controller, going to the Identity tab (the last one) and putting the class name of your new view controller in the "Class" field.

Upvotes: 3

Related Questions