我从另一个UINavigationController
提出UINavigationController
,就像这样:
let customNavigationController = CustomNavigationController()
customNavigationController.viewControllers = [myController]
customNavigationController.modalPresentationStyle = .custom
self.navigationController.present(customNavigationController, animated: true, completion: nil)
然后,当"关闭"点击按钮,我试着像这样解雇它:
navigationController.dismiss(animated: true, completion: nil)
适用于iOS 11
,但它在iOS 9
和iOS 10
中均无效。我错过了什么或做错了什么?