[将新的viewcontroller推入堆栈时,我看到一个奇怪的渐变/蒙版大约一秒钟,然后它消失了
我有一个UINavigationController
来呈现一个视图,该视图具有一个编辑按钮,该按钮可以关闭呈现的视图,并在完成处理程序中推送一个新的视图。
let changevc = UIViewController() // change this code as this is your view controller with edit button
changeVC.modalPresentationStyle = .fullScreen //or .overFullScreen
self.present(changeVC, animated: true, completion: nil)