私はMainWindow.xibファイルを持っています。私はMainWindowLandscape.xibである2番目の.xibファイルを探します。私は多くの.xibファイルを持っており、私はポートレートと風景を別々にデザインしています。とにかくeasly Interface Orientationを変更するにはどうしますか?
MainWindow.xibとMainWindowLandscape.xib(UITabbarControllerベース)でそれらを割り当てたいのですが、MainWindow.xibでポートレートビューを割り当て、MainWindowLandscape.xibで風景ビューを割り当てます。それは可能か、最も簡単な方法は何ですか?
すべてのビュー(ポートレートとランドスケープ)は、同じことをお互いに行います。 UIのみが変更されます。
ありがとうございます。
これがあなたが提案しているものかどうかは分かりませんが、 '-shouldAutorotateToInterfaceOrientation:'の結果は動的に変更してはいけません。 – jtbandes
@jtbandes:私の 'shouldAutorotateToInterfaceOrientation'実装はかなり静的です。各実装はコントローラタイプに特有ですが、明確でない場合は – sergio
Ah ok。私はちょうどあなたが「風景を強制したい時」を誤解しました。 – jtbandes