iOS 6.0 ベータ版を使用していますが、ローテーションが機能しなくなりました。
UINavigationControllers supportedOrientations はどこで設定できますか?
このhttp://news.yahoo.com/apple-ios-6-beta-3-changes-182849903.htmlによると 、UINavigation コントローラーは、自動回転するかどうかを決定するために子供たちに相談しません。
shouldAutorotateToInterfaceOrientation: は廃止されたため、もう使用していません。代わりに、supportedInterfaceOrientations: と shouldAutoRotate: を使用しており、ViewController を NavigationController に (子として) 配置するまで、正常に動作しています。それ以降、ViewController で指定された方向は機能しなくなります。ナビゲーションコントローラー(UIInterfaceOrientationMaskAllButUpsideDown)によって設定された向きを使用しているようです
ViewControllers が Portrait-Orientation にロックされるように、NavigationController の InterfaceOrientations を設定するにはどうすればよいですか?
UINavigationController をサブクラス化し、そこに InterfaceOrientations を設定する必要がありますか? iOS 6.0 のまま UINavigationController をサブクラス化するのは悪い習慣ではありませんか?
助けてくれてありがとう!
乾杯!