Re: (SOLVED) MainWindow.xib required or not? (Philip McIntosh)
Re: (SOLVED) MainWindow.xib required or not? (Philip McIntosh)
- Subject: Re: (SOLVED) MainWindow.xib required or not? (Philip McIntosh)
- From: Philip McIntosh <email@hidden>
- Date: Mon, 28 Nov 2011 17:48:53 -0700
It is not required. I can easily build you a sample without a nib/xib of any sort
Nibs are optional. If you do add one, don't forget to add a NSMainNibFile(~*) key/value in the Info.plist.
Thanks for those two answers. I also tried a little test app using view-based template with a Storyboard and I do see that it works fine.
I however initiated my project without a storyboard. Was that a mistake?
Anyway I figured out that when I was copying some code over from my functioning iPad app delegate I overwrote this important bit of code:
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; // Override point for customization after application launch. self.viewController = [[ViewController alloc] initWithNibName:@"ViewController" bundle:nil];
Which of course caused the view not to appear.
It was actually pretty easy to convert the iPad app to an iPhone app going this route. |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden