Skip to content

Instantly share code, notes, and snippets.

@zholmquist
Created November 1, 2010 16:42
Show Gist options
  • Save zholmquist/658474 to your computer and use it in GitHub Desktop.
Save zholmquist/658474 to your computer and use it in GitHub Desktop.
Forcing Landscape Mode on iOS Apps
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation == UIInterfaceOrientationLandscapeLeft) ||
(interfaceOrientation == UIInterfaceOrientationLandscapeRight);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment