Skip to content

January 21, 2014

OpenGL Wrong Orientation with Xcode 4.6 and iOS 6

by noise

If your windows of your OpenGL app has a wrong orientation try replacing the following code (from YourProgramAppDelegate.m):

from:

- (void) applicationDidFinishLaunching:(UIApplication *)application
{
    [window addSubview:viewController.view];
}

to:

- (void) applicationDidFinishLaunching:(UIApplication *)application
{
    [window setRootViewController:viewController];
}
Read more from Dev Tips

Leave a Reply

required
required

Note: HTML is allowed. Your email address will never be published.

Subscribe to comments