看到iPhone X Simulator顶部和底部的黑条 [英] Seeing black bars at the top and bottom of the iPhone X Simulator

查看:111
本文介绍了看到iPhone X Simulator顶部和底部的黑条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在iPhone X模拟器(GM Seed)中运行我的应用程序我注意到两个奇怪的效果:

Running my App in the iPhone X Simulator (GM Seed) I am noticing two strange effects:


  • 应用程序不使用全屏空间(顶部和底部区域为黑色)

  • 标题栏下方的一个奇怪的白色栏

有人知道这里发生了什么以及如何解决这个问题?我在Interface Builder中找不到任何新设置。

Does anybody know what is happening here and how to resolve this? I can't find any new settings in Interface Builder.

推荐答案

使用启动图像时(而不是更简单的启动屏幕文件) ),您需要为您希望支持的每种设备尺寸提供适当大小的启动图像。添加额外的启动图像后,您的应用应该利用新的屏幕尺寸。

When using launch images (instead of the much easier Launch screen file), you need to provide the properly sized launch image for each device size you wish to support. Once you add the additional launch image, your app should take advantage of the new screen size.

新的iPhone X需要一个尺寸为1125像素×2436像素的发布图像,这是一个适用于375pt×812pt的3x图像。

The new iPhone X requires a launch image sized at 1125px × 2436px which is a 3x image for 375pt × 812pt.

当然,如果您切换到使用启动屏幕文件而不是单独的启动图像,您的应用程序将自动适应所有设备尺寸任何额外的工作。

Of course if you switch over to using a Launch screen file instead of individual launch images, your app will automatically adapt to all device sizes without any additional work.

这篇关于看到iPhone X Simulator顶部和底部的黑条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆