diff --git a/SWRevealViewController/SWRevealViewController.m b/SWRevealViewController/SWRevealViewController.m index d378d13..f89a780 100755 --- a/SWRevealViewController/SWRevealViewController.m +++ b/SWRevealViewController/SWRevealViewController.m @@ -766,7 +766,12 @@ - (NSUInteger)supportedInterfaceOrientations { // we could have simply not implemented this, but we choose to call super to make explicit that we // want the default behavior. - return [super supportedInterfaceOrientations]; + return self.frontViewController.supportedInterfaceOrientations; +} + +- (BOOL)shouldAutorotate +{ + return self.frontViewController.shouldAutorotate; }