私のアプリは2つのUIWindowsを使用しています。最初に示されているのは、縦向きにのみ回転するViewControllerを備えたTabBarコントローラーです。ここまではすべてうまくいきました。
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return (UIInterfaceOrientationIsPortrait(interfaceOrientation));
}
もう一方のウィンドウには、すべての方向に回転するUIViewControllerがあります。
問題は、2番目のウィンドウを表示すると
[secondWindow makeKeyAndVisible];
そして、最初のものに戻ります
[firstWindow makeKeyAndVisible];
ステータスバーはすべての方向に回転し、イベントshouldAutorotateToInterfaceOrientationは発生しません。どうすれば問題を解決できますか?