iOS项目旨在仅在某些视图控制器上旋转。
这种情况才刚刚开始发生,但是当你在一个只有肖像的视图控制器上旋转时,状态栏会旋转,但没有别的。
加载初始视图控制器;
ViewController *vc = (ViewController*)[UIBuilder viewControllerWithViewName:mainViewName];
self.appDelegate.mNavigationController = [[RotatingNavigationController alloc] initWithRootViewController:vc];
self.appDelegate.mNavigationController.navigationBarHidden = YES;
LeftSideMenuViewController *leftSideMenuViewController = [[UIStoryboard storyboardWithName:@"Main" bundle:nil] instantiateViewControllerWithIdentifier:@"LeftSideMenu"];
self.appDelegate.container = [MFSideMenuContainerViewController
containerWithCenterViewController:self.appDelegate.mNavigationController
leftMenuViewController:leftSideMenuViewController
rightMenuViewController:nil];
[self.appDelegate.container.shadow setEnabled:NO];
self.appDelegate.window.rootViewController = self.appDelegate.container;