Re: MainWindow.xib required or not?
Re: MainWindow.xib required or not?
- Subject: Re: MainWindow.xib required or not?
- From: Matt Neuburg <email@hidden>
- Date: Tue, 29 Nov 2011 16:01:54 -0800
On Sun, 27 Nov 2011 23:28:44 -0700, Philip McIntosh <email@hidden> said:
>I wanted to convert an iPad to Universal, but decided it would be easier to just make a new iPhone app based on the same code. So far so good and it compiles fine but the view doesn't show even though the view is hooked up. In looking deeper I see that no MainWindow.xib was created in the new view-based project. In reading here and there I've seen that some say it is not required and "handled in code" while others say to make one and use it.
>
>So, is one really required or not? I'm thinking that if I do make one and hook it up to the delegate, that it will start working, but it seems strange that such an important thing would be left out by default.
Understanding the nib-loading mechanism and deciding how to get your initial interface showing (i.e. picking a bootstrapping strategy) has always been up to you. Nothing has changed here except for the bootstrapping strategy favored by the project templates. But you are not obliged to do things the way the templates now suggest. So, if there is a main nib specified in the info.plist, it will be loaded at launch with the application as owner. If not, not. Just like before. m.
--
matt neuburg, phd = email@hidden, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
Programming iOS 4!
http://www.apeth.net/matt/default.html#iosbook _______________________________________________
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