题
我已经加入两个图像。默认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
不隶属于 StackOverflow