MikeN
MikeN

Reputation: 46337

iPad: Launch MainWindow.xib's primary view without using InterfaceBuilder confi

I get really confused using InterfaceBuilder to setup the main window xib file's primary controller view. Is there a good example or simple way to launch the ViewController I want to show by default in the Application Delegate instead of setting it up in InterfaceBuilder's MainWindow.xib file?

Upvotes: 0

Views: 602

Answers (1)

saadnib
saadnib

Reputation: 11145

you can show your view by code as

FirstViewController *fvc = [[FirstViewController alloc] init];

[window addSubView:fvc];

Upvotes: 1

Related Questions