nis*_*tcm 3 screen-orientation ipad
我添加了两张图片.Default-Portrait.png和Default-Landscape.png.但每当我启动我的应用程序时,只显示纵向默认图像,而不管方向如何.
为什么会这样?
小智 13
我遇到了同样的问题,并通过将以下内容添加到Info.plist文件(来自Xcode)来解决它:
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5478 次 |
| 最近记录: |