从
present
界面push
到另一个界面
let vc = PresentViewController()
let navigationModalController = UINavigationController(rootViewController: PresentViewController)
present(navigationModalController, animated: true)
---
// PresentViewController 隐藏导航条
override func viewWillAppear(_ animated: Bool) {
navigationController?.navigationBar.isHidden = true
}
这样就可以在PresentViewController
中使用 present
和 push
了。
网友评论