I just started developing a game for my new iphone 5 but every time I build it to my device I get this warning in the console.
Application windows are expected to have a root view controller at the end of application launch
I searched the web for a fix but everything I was finding said to put this line of code:
window.rootViewController = rootViewController;
In this method:
-(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
But the problem with this is that line of code had to be commented out in cocos2d because it was causing the application to start up in portrait mode no matter what orientation was selected. So does anyone know of a fix for this?