我有一个ipad应用程序,其UI在12英寸的ipad pro上显示比例或“显示缩放”。 这是因为没有使用正确的启动图像。
我发现ipad pro的启动图像尺寸 - 12.9英寸是= 2048 x 2732
当我尝试在media.xcasset中添加正确的图像时,ipad pro没有占位符。
如何为ipad pro添加正确的图像,以便不会缩放UI。
答案 0 :(得分:0)
LaunchImage
支持iOS 8以下,因此您必须使用LaunchScreen
使用iOS 8以上版本。
如果您的应用普遍支持(iPhone / iPad均支持),则创建两个单独的LauchScreen.storyboard
创建两个storyboard
启动ScreeniPhone.storyboard LaunchScreeniPad.storyboard
在情节提要中设置imageView并在imageView中设置大图像。
然后在LauchScreen.storyboard的info.plist文件中添加键和值。
<key>UILaunchStoryboardName</key>
<string>LaunchScreeniPhone</string>
<key>UILaunchStoryboardName~ipad</key>
<string>LaunchScreeniPad</string>
最后在常规->应用程序图标和Lauch图片-> LauchScreen-> LauchScreeniPhone中设置LaunchScreen。