質問

両方の画像を追加しました。 default-portrait.pngおよびdefault-landscape.png。しかし、アプリを開始するたびに、方向に関係なく、ポートレートデフォルトの画像のみが表示されます。

なぜこうなった?

役に立ちましたか?

解決

私は同じ問題を抱えており、info.plistファイル(xcodeから)に次のことを追加することで解決しました。

<key>UISupportedInterfaceOrientations</key>
<array>
    <string>UIInterfaceOrientationPortrait</string>
    <string>UIInterfaceOrientationPortraitUpsideDown</string>
    <string>UIInterfaceOrientationLandscapeLeft</string>
    <string>UIInterfaceOrientationLandscapeRight</string>
</array>

他のヒント

オリエンテーションに基づいて画像を交換するためにコードを追加しましたか?私は、あなたがそれを言わない限り、アプリがあなたが望む写真を知らないだけだと思います。

uiinterfaceorientation param

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top