Skip to content

Instantly share code, notes, and snippets.

@Dimillian
Created March 22, 2013 10:14
Show Gist options
  • Save Dimillian/5220293 to your computer and use it in GitHub Desktop.
Save Dimillian/5220293 to your computer and use it in GitHub Desktop.
pragma mark - Orientation stuff
-(BOOL)shouldAutorotate
{
if (isIpadIdiom) {
return YES;
}
return NO;
}
-(NSUInteger)supportedInterfaceOrientations
{
if (isIpadIdiom()) {
return UIInterfaceOrientationMaskAll;
}
return UIInterfaceOrientationMaskPortrait;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment