[英]All view controllers and navigation view controllers end below the status bar
All my view controllers
and navigation view controller
end below the status bar. 我所有的view controllers
和navigation view controller
都在状态栏下方。 How to avoid such behavior, so that they don't use the full screen. 如何避免这种行为,以便他们不使用全屏显示。
I'm using xCode9
with iOS11
. 我将xCode9
与iOS11
xCode9
使用。
I've played with edgesForExtendedLayout
property, but that didn't work. 我玩过edgesForExtendedLayout
属性,但是没有用。
I have also met same problem and finally I found out that the issue is with safe area in Xcode 9. 我也遇到了同样的问题,最后我发现问题出在Xcode 9中的安全区域。
You can solve this by 2 ways 您可以通过两种方法解决此问题
1. Uncheck use safe area support 1.取消选中使用安全区域支持
2. If you are using Autolayout
adjust your toplayout
constraint value as that achive FullScreen 2.如果您使用的是自动Autolayout
调整toplayout
限制值,使其达到全屏
设置edgesForExtendedLayout = UIRectEdge(rawValue: UInt(0))
应该足够了
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.