[英]Layout issue with iOS 13 and Xcode 11
Opened up an existing project to do some updates and notices that there is now a space at the top of all of my view controllers.打开一个现有的项目进行一些更新,并注意到现在我的所有视图控制器顶部都有一个空间。 This relays out to the device (iPhone X) when deployed.
这会在部署时中继到设备 (iPhone X)。 See area outlined in red.
请参阅以红色标出的区域。 The area behind the green top bar is what I am talking about.
绿色顶栏后面的区域就是我所说的。 I have tried changing the layout constraints but no help.
我曾尝试更改布局约束,但没有帮助。 Any ideas?
有任何想法吗?
Apple introduced a new default card presentation. Apple 推出了一种新的默认卡片展示方式。 In order to force the fullscreen you have to specify it explicitly with:
为了强制全屏,您必须明确指定它:
let controller = UIViewController()
controller.modalPresentationStyle = .fullScreen //or .overFullScreen for transparency
self.present(controller, animated: true, completion: nil)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.