IOS 8上的Iphone Simulator Xcode 6可视化两个黑条 [英] Iphone Simulator Xcode 6 on IOS 8 visualize two black bars
问题描述
我在Xcode 6中尝试过新的应用程序而不使用故事板。但是当我运行应用程序时,使用Iphone 5,5s,6和6 plus,在Iphone Simulator中可视化顶部和底部的两个黑条。只有Iphone 4s没有黑条。
你有想法解决我的问题吗?
谢谢
I have tried new app in Xcode 6 and not use storyboard. But when I have ran the app, with Iphone 5,5s,6 and 6 plus, in Iphone Simulator visualize two black bars on the top and below. Only Iphone 4s there aren't black bars. Do you have an idea to resolve my problem? Thanks
推荐答案
您需要为项目添加一个640x1136的Default-568h@2x.png图像文件。我添加了一个旧项目中的全黑色。我没有设置任何其他东西,这很好。如果您正在为iOS8及更高版本构建,则可以改为使用LaunchScreen.xib。
You need to add a Default-568h@2x.png image file that is 640x1136 to your project. I added an all black one that was in an older project. I didn't have to set anything else, which was nice. If you are building for iOS8 and later you can just use the LaunchScreen.xib instead.
这篇关于IOS 8上的Iphone Simulator Xcode 6可视化两个黑条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!