Created
September 6, 2013 19:04
-
-
Save alvareztech/6468426 to your computer and use it in GitHub Desktop.
iOS: Lock change orientation of Controller. (Having enabled two orientations in the project summary)
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
// Portrait | |
- (NSUInteger)supportedInterfaceOrientations { | |
return UIInterfaceOrientationMaskPortrait; | |
} | |
// Landscape | |
- (NSUInteger)supportedInterfaceOrientations { | |
return UIInterfaceOrientationMaskLandscape; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment