Created
June 14, 2013 23:33
-
-
Save grantmiller/5786078 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
@interface MyNavigationController : UINavigationController | |
@end | |
@implementation MyNavigationController | |
-(BOOL)shouldAutorotate { | |
LIOLookIOManager* lookIOManager = [LIOLookIOManager sharedLookIOManager]; | |
if ([lookIOManager shouldLockInterfaceOrientation]) | |
return NO; | |
return YES; | |
} | |
// Older versions of iOS (deprecated) if supporting iOS < 5 | |
- (BOOL)shouldAutorotateToInterfaceOrientation | |
:(UIInterfaceOrientation)toInterfaceOrientation { | |
LIOLookIOManager* lookIOManager = [LIOLookIOManager sharedLookIOManager]; | |
if ([lookIOManager shouldLockInterfaceOrientation]) | |
return NO; | |
return YES; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment