如何解除iOS 10及以下版本中另一个导航控制器提供的导航控制器?

时间:2017-11-13 15:29:52

标签: ios uinavigationcontroller ios10 dismiss presentviewcontroller

我从另一个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 9iOS 10中均无效。我错过了什么或做错了什么?

0 个答案:

没有答案