任何嘗試最新的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