美文网首页
swift5 - 从 present 界面 push 到另一个界

swift5 - 从 present 界面 push 到另一个界

作者: promise96319 | 来源:发表于2019-07-14 15:37 被阅读0次

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中使用 presentpush 了。

相关文章

网友评论

      本文标题:swift5 - 从 present 界面 push 到另一个界

      本文链接:https://www.haomeiwen.com/subject/qjzbkctx.html