From 02368f79c5eb7a93fb4e13026fd6c94e8a1cbd8e Mon Sep 17 00:00:00 2001 From: Slava Semeniuk Date: Fri, 16 Dec 2016 10:24:53 +0200 Subject: [PATCH] autorotation fixes --- SWRevealViewController/SWRevealViewController.m | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; }