0

I am trying to implement a push/show segue from a UITableViewController that is presented modally. I am able to perform a push segue from a row in the tableview, but it is delayed. I know it has something to do with the navigation hierarchy stack, and I have tried many things like resetting the rootViewController but am not having any luck...thanks for any help!

// 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)
    }
user3708224
  • 1,229
  • 4
  • 19
  • 37
  • Why not dismiss the tableVC from the parent VC and then show the segue from the parent VC? – Sylvan D Ash Mar 29 '17 at 05:37
  • I tried that and it still gives me a little glich...I do have a class MainNavigationController: UINavigationController being called in my AppDelegate...would that cause this?? – user3708224 Mar 30 '17 at 00:00
  • Embed your table view controller to the navigation controller. And that's it. – Mannopson Mar 30 '17 at 01:39
  • I am building everything programmatically... – user3708224 Mar 30 '17 at 02:50
  • Are you perhaps running any API calls on the new VC displayed after the segue? – Sylvan D Ash Mar 30 '17 at 06:42
  • I am running GooglePlaces API to populate the UITableViewVC, but then I want to push to a detailed view and show data that was pulled into the UITableView. So I am passing GMSPlace data from the picker, to a TableView, then to the Detailed VC. – user3708224 Mar 30 '17 at 15:05

0 Answers0