Skip to content

Instantly share code, notes, and snippets.

@mattrayner
Created April 21, 2016 10:16
Show Gist options
  • Save mattrayner/a133173440b26b8ef42d216caae20fb6 to your computer and use it in GitHub Desktop.
Save mattrayner/a133173440b26b8ef42d216caae20fb6 to your computer and use it in GitHub Desktop.

Within Classes>AppDeligate.m scroll to the bottom and remove the references to Portrait and UpsideDown. It sould look like this when finished:

- (NSUInteger)application:(UIApplication*)application supportedInterfaceOrientationsForWindow:(UIWindow*)window
{
    // iPhone doesn't support upside down by default, while the iPad does.  Override to allow all orientations always, and let the root view controller decide what's allowed (the supported orientations mask gets intersected).
    NSUInteger supportedInterfaceOrientations = (1 << UIInterfaceOrientationLandscapeLeft) | (1 << UIInterfaceOrientationLandscapeRight);

    return supportedInterfaceOrientations;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment