Skip to content

Instantly share code, notes, and snippets.

@grantmiller
Created June 14, 2013 23:33
Show Gist options
  • Save grantmiller/5786078 to your computer and use it in GitHub Desktop.
Save grantmiller/5786078 to your computer and use it in GitHub Desktop.
@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