NimbleKit - fast iOS app development

Root View Controller at the end of Application Launch

Problem discussions

Root View Controller at the end of Application Launch

Postby chrismx98 » Thu Jun 14, 2012 6:38 pm

So on the iOS 6 beta and Xcode 4.5 I'm getting this message in the log

"2012-06-14 09:34:50.873 Application windows are expected to have a root view controller at the end of application launch"

And once launched it is stuck in portrait mode when it is a landscape only app.

It worked with iOS 5 so I'm confused. Please help. Thanks.
chrismx98
 
Posts: 10
Joined: Mon Mar 12, 2012 7:13 am

Re: Root View Controller at the end of Application Launch

Postby floz » Thu Jul 12, 2012 2:56 am

Dang, same problem here. Did you find a solution?
User avatar
floz
NimbleKit Guru
 
Posts: 261
Joined: Sat Feb 05, 2011 2:07 pm
Location: Newcastle, Australia

Re: Root View Controller at the end of Application Launch

Postby npalmqvist » Tue Aug 14, 2012 12:56 pm

+1


:(
npalmqvist
 
Posts: 106
Joined: Thu Feb 17, 2011 10:07 pm
Location: Stockholm, SWEDEN

Re: Root View Controller at the end of Application Launch

Postby npalmqvist » Wed Aug 29, 2012 10:06 am

BUMP

Does anyone have any information on how to solve this issue?
npalmqvist
 
Posts: 106
Joined: Thu Feb 17, 2011 10:07 pm
Location: Stockholm, SWEDEN

Re: Root View Controller at the end of Application Launch

Postby blazeman » Thu Sep 13, 2012 5:01 am

And now that is' Gold Master... this is happening to my apps..

Anyone have a fix?
User avatar
blazeman
NimbleKit Expert
 
Posts: 712
Joined: Sat May 30, 2009 5:58 pm

Re: Root View Controller at the end of Application Launch

Postby FabioS » Thu Sep 13, 2012 12:46 pm

Same problem. Please help
FabioS
 
Posts: 2
Joined: Thu Nov 10, 2011 3:50 pm

Re: Root View Controller at the end of Application Launch

Postby blazeman » Thu Sep 13, 2012 8:22 pm

Something else I am noticing... I can have functions run on a fresh simulator. Once I close the app or relaunch it (new build with changes) those functions will not run again.

This goes from staring a InternetRadio stream to putting a log using NKLog... anyone hear about some wacky caching in iOS 6?

I have a trouble ticket open with Apple to see if they screwed something up to make this happen.

I have tried 7 different nimble kit apps posted here on the forum and all are showing the same things... so it's not just my junk code ;)
User avatar
blazeman
NimbleKit Expert
 
Posts: 712
Joined: Sat May 30, 2009 5:58 pm

Re: Root View Controller at the end of Application Launch

Postby iMatte » Fri Sep 14, 2012 7:15 am

where is sunny?
iMatte
 
Posts: 12
Joined: Thu Sep 13, 2012 7:55 am

Re: Root View Controller at the end of Application Launch

Postby floatingpointmatt » Fri Sep 14, 2012 5:17 pm

Hey everybody,

I know it's been a while since this thread started, but since I've managed to pull a few threads together to get something that at least eliminates the error, I thought I'd share.

From the thread on Nimblekit and Zbar (http://www.nimblekit.com/forum/viewtopic.php?f=6&t=1771#p8989), Sunny shows how to set up a tie to the viewcontroller NimbleKit makes available.

I place it just before the return YES; in AppDelegate.m.

Code: Select all
   UINavigationController *controller = [[NSClassFromString(@"NKBridge") sharedInstance] navigationControllerForPage:@"main.html"];
   if (!controller) {
      controller = [[NSClassFromString(@"NKTabBarController") sharedInstance] tabController];
   }   
   if (!controller) {
      controller = [[NSClassFromString(@"NKBridgeInternal") sharedInstance] _nimbleViewController];
   }
   self.window.rootViewController = controller;


It works well, though better on iPhone than iPad.

Does anybody have any commentary on whether there is a better way of doing this?
User avatar
floatingpointmatt
 
Posts: 6
Joined: Fri Sep 14, 2012 5:08 pm
Location: Ontario, Canada

Re: Root View Controller at the end of Application Launch

Postby blazeman » Fri Sep 14, 2012 6:26 pm

FPM... this does indeed kill the error about the view controller. THANK YOU for that!
User avatar
blazeman
NimbleKit Expert
 
Posts: 712
Joined: Sat May 30, 2009 5:58 pm

Next

Return to Troubleshooting

Who is online

Users browsing this forum: No registered users and 1 guest