iMiniB3D RootControllerView Error

BlitzMax Forums/MiniB3D Module/iMiniB3D RootControllerView Error

Rob Pearmain(Posted 2012) [#1]
Hi,

When I run on OS 5, it does not crash but does give this debug error:

Applications are expected to have a root view controller at the end of application launch



ima747(Posted 2012) [#2]
That's a new error with iOS 5 that happens a lot and is generally not critical, just a little annoying. Check the official apple forums for more details. It's often caused by triggering a global level view (like a UI alert) before the view structure is fully displayed.


Rob Pearmain(Posted 2012) [#3]
A workaround to avoid the message is to add the following code to the beginning of the

applicationDidFinishLaunching function

Probably should actually create it and clear the memory on exit I guess

    
    self.window.rootViewController = [[UIViewController alloc]init];