Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
129 views
Welcome To Ask or Share your Answers For Others

1 Answer

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.

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>

Then set full-size image set in LauchScreen.storyboard. and set Launch screen file is LaunchScreen~iPhone(Default).

enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...