0

我正在尝试从模态呈现的 UITableViewController 实现推送/显示 segue。我能够从 tableview 中的一行执行 push segue,但它被延迟了。我知道它与导航层次结构堆栈有关,并且我尝试了很多事情,例如重置 rootViewController 但没有任何运气......感谢您的帮助!

// present place tableViewController ---> modally
    func handleShowPlacesVC() {
        let vc = PlacesTableVC()
        let navigationController = UINavigationController(rootViewController: vc)
        present(navigationController, animated: true, completion: nil)
    } 


// show details tableViewController ---> push segue from tableview
    func handleShowCurrentUserPlaceDetailsVC() {
        let vc = CurrentUserPlaceDetailsVC()
        navigationController?.pushViewController(vc, animated: true)
    }
4

0 回答 0