Iphone Simulator Xcode 6 on IOS 8 visualize two black bars

笑着哭i 提交于 2019-12-04 11:16:26

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.

In my case I was using jpg pictures for the default. Even though I had the correct file names and resolutions, it didn't work. Switching from jpg to png solved it.

If you designed the app so that its views had the "old" screen size, and didn't design them to be responsive to different screen sizes, then the phone will add the black bars (known as a "letterbox", I think).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!