Xcode 4.5 で IOS 5 用の iPad アプリを作成すると、横向きの問題が発生します。
Bool autorotate
インターフェイスビルダーでランドスケープを選択するだけのように、コードは使用しません。[自動レイアウトを使用] の選択が解除されています。
アプリを作成するときに、プロジェクト フォルダー (青いアイコン) で IOS Deployment Target 5.1 を選択します。
ビルド設定はアーキテクチャ ベース Sdk は IOS 6
ストーリーボードでは、ナビゲーション コントローラーが横向きに設定され、インターフェイス ドキュメントが 5.1 に設定されています。
IOS 6 シミュレータ ランドスケープでは、次のようにうまく機能します。
しかし、IOS 5.1 では、シミュレータ ランドスケープが機能せず、見当識障害があります。
何が欠けていますか?これを 5.1 と 6 の両方のバージョンで機能させるにはどうすればよいですか?
編集=====
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
if (interfaceOrientation==UIInterfaceOrientationLandscapeRight)
return YES;
return NO;
}
上記のコードも機能しません。それは今でも同じです。