Skip to content

Instantly share code, notes, and snippets.

@mpurbo
Created March 7, 2013 01:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mpurbo/5104750 to your computer and use it in GitHub Desktop.
Save mpurbo/5104750 to your computer and use it in GitHub Desktop.
Disable horizontal auto-rotation on iOS >= 6.0
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
- (NSUInteger)supportedInterfaceOrientations {
return UIInterfaceOrientationMaskPortrait;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment