简体   繁体   English

iPhone在状态栏顶部添加黑色空间

[英]iPhone adding black space on the top of status bar

Not sure how to explain this, Have added some images below. 不知道如何解释这个,在下面添加了一些图片。 Not sure what I have changed but it seems my app has now got black bar above and below the app. 不知道我改变了什么,但似乎我的应用程序现在在应用程序的上方和下方都有黑条。 Before the status bar was sitting on the top of the device. 在状态栏位于设备顶部之前。 I have tried playing around with the auto layout but didnt seems to help at all. 我试过玩汽车布局,但似乎没有任何帮助。 can some one please help. 可以请一些人帮忙。

旧屏幕

新的屏幕

You need to support the iPhone 5 screen size (4 inches). 您需要支持iPhone 5屏幕尺寸(4英寸)。

Add a launch image with the appropriate size (look in your image assets folder) and your app will then adapt to this device's screen. 添加具有适当大小的启动图像(查看图像资源文件夹),然后您的应用将适应此设备的屏幕。

Note that you should also support the new iPhone 6 and 6 Plus screens sizes and add the appropriate launch images. 请注意,您还应支持新的iPhone 6和6 Plus屏幕尺寸并添加适当的启动图像。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM