我正在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)
}