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

Categories

0 votes
214 views
in Technique[技术] by (71.8m points)

ios - Black bars on launch screen on iPhone5 (and iPhone6)

When iPhone 5 first came out we had to go through the silliness of adding a [email protected] to the project to get the app to use the full height of the iPhone 5. In late 2014 are we still doing that?

We have asset catalogs and the LaunchScreen.xib file. Do we still need to add the [email protected] file? If so, where does it go now? I've tried a few different things and I can't get rid of the black bars in a new app created with Xcode 6 GM.

Question&Answers:os

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

1 Answer

0 votes
by (71.8m points)

As stated by rmaddy in the comments, if you are supporting iOS < 8, you still need to do this:

General / App Icons and Launch Images

Launch Image Source - select LaunchImage for asset catalog.

Add a 640x1136 image for the "Retina 4" option.

So I guess the LaunchScreen.xib is useless if you target iOS < 8, unless you want to update both that and the asset catalog when the image changes.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...