简体   繁体   中英

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM