0

我正在ChatViewController从导航堆栈上的 TraderDetailTableViewController 推送,但是当在 中触摸默认后退按钮时ChatViewController,它会弹出到ServicesTableViewController,而不是TraderDetailTableViewController像我预期的那样弹出。除了实例化之外,
所有其他控制器都通过 segue 链接 。 我在这里做错了什么? ChatViewController

UITabBarController
  NavigationController
    ServicesTableViewController
      TraderListTableViewController
         TraderDetailTableViewController
             ChatViewController 


func startChat() {
     let chatVC = storyboard?.instantiateViewController(withIdentifier: "ChatViewController") as! ChatViewController
        chatVC.hidesBottomBarWhenPushed = true
        self.navigationController?.pushViewController(chatVC, animated: true)
}
4

1 回答 1

-1

我有一个像你的问题一样的问题。我使用这个参考进行整理。Swift 中的编程导航视图控制器

于 2018-09-07T17:47:59.987 回答