最佳答案
您还没有发布任何仍在猜测的代码。
只在 Storyboard中使用UINavigationController
并不意味着它会默认出现。
您只是在呈现 View Controller 。您需要嵌入导航 Controller 或将 Storyboard 标识符提供给导航 Controller 并呈现。
示例:
let yourviewController = self.storyboard?.instantiateViewController(withIdentifier: "yourVCIdentifer")
let nav = UINavigationController(rootViewController: yourviewController)
self.present(nav, animated: true, completion: nil)
关于ios - 导航栏不出现,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48759569/