在iOS 13中,模态视图控制器默认行为不再是全屏
解决方法
对于只在Storyboard设置了跳转只需要Storyboard更改即可
使用代码跳转的必须Storyboard和代码都改为fullScreen方法才生效
let vc = UIViewController()
vc.modalPresentationStyle = .fullScreen
self.present(vc, animated: true, completion: nil)
在iOS 13中,模态视图控制器默认行为不再是全屏
解决方法
对于只在Storyboard设置了跳转只需要Storyboard更改即可
使用代码跳转的必须Storyboard和代码都改为fullScreen方法才生效
let vc = UIViewController()
vc.modalPresentationStyle = .fullScreen
self.present(vc, animated: true, completion: nil)