iPad Pro无法全屏打开我的应用 [英] iPad pro doesn't open my app in full screen
问题描述
通过iPad pro 12.9打开我的应用时,会有黑边我该如何解决?使用xcode 9.4和10.1构建应用程序,两者相同.其他iPad没有问题,只有iPad Pro才出现问题
There will be a black margin when my app open via iPad pro 12.9 How can I fix it? Built the app using xcode 9.4 as well as 10.1 and both are same. No issue for other iPads the issue happens only for iPad pro
推荐答案
因为您没有为 iPad 12.9
添加 LaunchImage
.而且资产中没有选项为 iPad 12.9
添加 LaunchImage
.因此,我建议您应使用 LaunchScreen.storyboard
而不是 LaunchImage
.
Because you did not add the LaunchImage
for iPad 12.9
. and there is no option in assets to add LaunchImage
for iPad 12.9
. So I suggest that you should use LaunchScreen.storyboard
instead of LaunchImage
.
一种更好的方式,您应该在其中创建两个不同的 LaunchScreen.storyboard
(一个用于 LaunchScreen〜iPhone
,另一个用于 LaunchScreen〜iPad
)一个专案.添加在 info.plist
A better way that you should create two different LaunchScreen.storyboard
( One for LaunchScreen~iPhone
, Second for LaunchScreen~iPad
) in a project. add both storyboard
set in info.plist
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UILaunchStoryboardName~ipad</key>
<string>LaunchScreeniPad</string>
然后在 LauchScreen.storyboard
中设置全尺寸图像集.并将启动屏幕文件设置为LaunchScreen〜iPhone(默认).
Then set full-size image set in LauchScreen.storyboard
. and set Launch screen file is LaunchScreen~iPhone(Default).
这篇关于iPad Pro无法全屏打开我的应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!