Ios segue之后缺少导航栏

Ios segue之后缺少导航栏,ios,swift,firebase,firebase-realtime-database,Ios,Swift,Firebase,Firebase Realtime Database,我有一个表视图控制器,其中有一个搜索栏连接到标题 tableView.tableHeaderView = searchController?.searchBar 当我在搜索栏中键入单词时,我的帖子将从Firebase中检索,并显示在另一个名为segueTableViewController的表中 let locationSearchTable = UIStoryboard(name: "MainPage", bundle: nil).instantiateViewController(wit

我有一个表视图控制器,其中有一个搜索栏连接到标题

tableView.tableHeaderView = searchController?.searchBar
当我在搜索栏中键入单词时,我的帖子将从Firebase中检索,并显示在另一个名为segueTableViewController的表中

 let locationSearchTable = UIStoryboard(name: "MainPage", bundle: nil).instantiateViewController(withIdentifier: "SegueTableViewController") as! SegueTableViewController
        searchController = UISearchController(searchResultsController: locationSearchTable)
        searchController?.searchResultsUpdater = locationSearchTable
当我单击segueTableViewController中的单元格时,它会将我分隔到一个详细页面,但该页面没有导航栏。但是,当我从另一个页面转到详细页面时,它有一个导航栏。几个月来,我一直在想为什么,但我不能。


请添加情节提要关系(显示)。故事板添加标识符值“SegueTableViewController”。导航控制器应位于搜索情节提要引用中


故事板中您的片段的呈现类型是什么?在中心的连接线中应该有一个圆圈,中间的图标代表类型。@ CalaMaySeGeeOK,请你添加你的故事板的屏幕截图,包括导航控制器,还有你执行SeGuE的代码?这可能是一个bug吗?我也有同样的问题。这是我最初做的。导航控制器应该在搜索故事板引用中回答此代码“self.navigationController?.setNavigationBarHidden(false,animated:true)”添加视图将消失我也有这个问题。你在搜索引用中有导航控件吗?
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        if segue.identifier == "GOTOPOST" {

            if let IndexPaths = self.followUsersTableView.indexPathForSelectedRow {

                self.navigationController?.isNavigationBarHidden = false

                let vc = segue.destination as! BookDetailsViewController
}}}