• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: (SOLVED) MainWindow.xib required or not? (Philip McIntosh)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Tiny.m
  • Next by Date: Re: Question about the C++ backtrace
  • Previous by thread: Re: Tiny.m
  • Next by thread: Speech Synthesis in iOS
  • Index(es):
    • Date
    • Thread