Skip to content

Instantly share code, notes, and snippets.

Created December 20, 2012 18:20
What would you like to do?
UINavigationController to consult top view controller about rotation
@implementation UINavigationController (Rotation)
// iOS 6
- (BOOL)shouldAutorotate {
return [[self topViewController] shouldAutorotate];
- (NSUInteger)supportedInterfaceOrientations {
return [[self topViewController] supportedInterfaceOrientations];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment