Created
October 21, 2014 21:35
-
-
Save vpx/7ef2d9904a106dc171ba to your computer and use it in GitHub Desktop.
Force change iOS application orientation mode
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
#import <objc/message.h> | |
[UIApplication sharedApplication] setStatusBarOrientation:UIInterfaceOrientationPortrait] | |
objc_msgSend([UIDevice currentDevice], @selector(setOrientation:), UIInterfaceOrientationPortrait); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment