iPhone X full screen issue [duplicate]

本秂侑毒 提交于 2019-12-18 15:16:10

问题


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?


回答1:


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).



来源:https://stackoverflow.com/questions/46190975/iphone-x-full-screen-issue

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