任何尝试最新的iOS 6测试版(版本2或3)的用户都有相同的自动旋转不工作经验?我不使用情节串连图板,但纯粹的导航控制iOS 6屏幕旋转,不使用故事板
:
self.navController = [[UINavigationController alloc] initWithRootViewController:self.viewController];
[self.window addSubview:navController.view];
而且有:
- (BOOL)shouldAutorotateToInterfaceOrientation: ](UIInterfaceOrientation)interfaceOrientation
{
if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) {
return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);
} else {
return YES;
}
}
- (NSUInteger)supportedInterfaceOrientations{
return UIInterfaceOrientationMaskAllButUpsideDown;
}
但IOS没有拥护可言,做工精细与3GS/4S和以前所有的iOS 4.3,5.0.5.1模拟器,但iOS 6似乎只是越野车
何时调用shouldAutorotate函数?当我旋转屏幕时,它似乎永远不会被调用...或者,这可能与模拟器有关吗? – shim 2012-10-26 04:57:30
查看我的问题在这里http://stackoverflow.com/questions/12640870/ios-6-force-device-orientation-to-landscape – 2012-10-27 15:12:06