Created
March 22, 2013 10:14
-
-
Save Dimillian/5220293 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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