2017-02-16 12 views
2

Xcodeで「ポートレート」のみをチェックするようにデバイスオリエンテーションを設定しました。 しかし、私はシミュレータで私のアプリを実行すると、すべての方向に回転します。Xcodeがデバイスの向きに従わない

My Xcode setting

Showing correctly in Portrait (intended) and Landscape (not intended)

誰もが前に同じ問題に直面していましたか? ありがとう

+1

は_Supportedインターフェイスorientations_値をチェックし、あなたの 'info.plist' –

+0

に私はUIInterfaceOrientationPortrait \t – Jeung

+0

を私の' info.plist'に次 \t UISupportedInterfaceOrientations \t \t \t をすでに含まれています私は同じ問題を抱えている。 'info.plist'も良いです、どんな運? – MattyK14

答えて

1

Xcodeの "一般" - > "展開情報" UIは、欺くことができます。あなたのInfo.plistにこれら2つのキーを確認します。

UISupportedInterfaceOrientations

UISupportedInterfaceOrientations~ipad

+0

私は同じ問題に遭遇しています。私は 'Portrait(bottom home button)' – MattyK14

1

私は(物理デバイスで)同じ問題がありました。 iPhoneでうまく動作しますが、iPadではうまく動作しません。解決策は、両方の場合の「デバイス」のオプションを調整することでした。この場合は「横向き」です。 Landscape Right checkbox checked under Device Orientation below Deployment Info

関連する問題