iPhone X全屏问题 [英] iPhone X full screen issue

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

问题描述

今天,我已经安装了 Xcode 9 ,并为 iPhone x 构建了我的应用程序.但是上方和底部显示为黑色,就像几年前我们遇到的iPhone 5在屏幕切换到3.5到4时遇到的情况.

我们如何简单地解决此问题?

解决方案

您应使用安全区域.

对于具有自定义布局的应用,还应该支持iPhone X 相对容易,尤其是如果您的应用使用自动版式并遵守 安全区域和边距布局指南.

了解更多: https://developer.apple .com/ios/human-interface-guidelines/overview/iphone-x/

我也是同样的问题.我也使用了安全区域布局.但是以上解决方案不支持我.我从下面的链接中获得了解决方案.

https://www.bignerdranch. com/blog/get-your-apps-ready-for-iphone-x/

以下几点有助于我解决该问题.

确保您的应用使用启动屏幕情节提要(不是启动图像).

Today I've installed Xcode 9 and build my app for iPhone x. but the upper and bottom area showing black like the scenarios we met couple of years ago for iPhone 5 when screen switched to 3.5 to 4.

How simply we can fix this problem?

解决方案

You should use a safe area.

For apps with custom layouts, supporting iPhone X should also be relatively easy, especially if your app uses Auto Layout and adheres to safe area and margin layout guides.

Read more: https://developer.apple.com/ios/human-interface-guidelines/overview/iphone-x/

I am also same issue. I used safe area Layout also. But above solution not support for me . I got solution from below link.

https://www.bignerdranch.com/blog/get-your-apps-ready-for-iphone-x/

This below point helped for me to resolve that solution.

Ensure your app uses a Launch Screen storyboard (not Launch images).

这篇关于iPhone X全屏问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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