ios 8+xcode 6.01+presentnavigationController+屏幕不旋转
我在介绍 [窗口添加子视图:navigationController.view]ios 8+xcode 6.01+presentnavigationController+屏幕不旋转,xcode,ios8,landscape,autorotate,Xcode,Ios8,Landscape,Autorotate,我在介绍 [窗口添加子视图:navigationController.view] [window makeKeyAndVisible]; LicenceAgreementViewController *licenceAgreementViewController = [[LicenceAgreementViewController alloc] initWithNibName:@"LicenceAgreementViewController" bundle:nil]; [self.navi
[window makeKeyAndVisible];
LicenceAgreementViewController *licenceAgreementViewController = [[LicenceAgreementViewController alloc] initWithNibName:@"LicenceAgreementViewController" bundle:nil];
[self.navigationController presentViewController :licenceAgreementViewController animated:YES completion:nil];
[licenceAgreementViewController release];
并且对.plist本身也做了一些更改
-NSIntegerApplication:UIApplication*应用程序支持的InterfaceOrientionsForWindow:UIWindow*窗口{
NSUInteger orientations = UIInterfaceOrientationMaskAll;
if(self.window.rootViewController){
UIViewController *presentedViewController = [[(UINavigationController *)self.window.rootViewController viewControllers] lastObject];
orientations = [presentedViewController supportedInterfaceOrientations];
// orientations = [presentedViewController supportedInterfaceOrientations];
}
任何帮助:提前谢谢