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

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

问题描述

今天我安装了 Xcode 9 并为 iPhone x 构建了我的应用程序.但上下区域显示为黑色,就像我们几年前在 iPhone 5 屏幕切换到 3.5 到 4 时遇到的场景一样.

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?

推荐答案

你应该使用安全区.

对于具有自定义布局的应用,也应该支持 iPhone X相对容易,特别是如果您的应用程序使用自动布局并遵守到安全区域和边距布局指南.

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.

阅读更多: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.

确保您的应用使用启动屏幕故事板(不是启动图像).

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

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