Re: erroneous template
Re: erroneous template
- Subject: Re: erroneous template
- From: Matt Neuburg <email@hidden>
- Date: Mon, 24 Oct 2011 09:49:28 -0700
On Sun, 23 Oct 2011 08:26:43 -0700, Matt Neuburg <email@hidden> said:
>Use Xcode 4.2 to create a new project based on the last iOS template, Empty Application. Run the project. It runs, but a warning message results in the console:
>
>"Applications are expected to have a root view controller at the end of application launch"
>
>An application template whose application isn't valid? Is this wise?
I can silence the warning by adding this line to the didLaunch code:
self.window.rootViewController = [[UIViewController alloc] init]; // no leak under ARC
It isn't pretty and hasn't much point, but it's good enough to remove the warning. This allows me once again to use the Empty Application template to demonstrate language features where no nib is needed. 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