Last active
December 20, 2015 13:29
-
-
Save danielctull/6139449 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
| - (NSUInteger)supportedInterfaceOrientations { | |
| switch ([[UIDevice currentDevice] userInterfaceIdiom]) { | |
| case UIUserInterfaceIdiomPad: | |
| return UIInterfaceOrientationMaskLandscape; | |
| case UIUserInterfaceIdiomPhone: | |
| return UIInterfaceOrientationMaskPortrait; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(NSUInteger) supportedInterfaceOrientations {
switch ((UIUserInterfaceIdiom)UI_USER_INTERFACE_IDIOM()) {
}
}