swift5 - 从 present 界面 push 到另一个界
2019-07-14 本文已影响0人
promise96319
从
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
了。