Created
April 14, 2017 15:29
-
-
Save josephchang10/1e05171f171b488e3be637c074878f22 to your computer and use it in GitHub Desktop.
Setting device orientation in Swift iOS
This file contains 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
override var prefersStatusBarHidden: Bool { | |
return true | |
} | |
override var supportedInterfaceOrientations: UIInterfaceOrientationMask { | |
return [UIInterfaceOrientationMask.portrait, UIInterfaceOrientationMask.portraitUpsideDown] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment