So I have a simple navigation controller with a sign up, hit done and you go to the home page. The problem is when you go to the home page, the navigation controller follows.
As you can see in the last picture (home page), the navigation bar remains. When the user presses "Done" on the first image I use self.performSegueWithIdentifier("loginTrue", sender: nil)
to go to the "home page". I've tried using
self.presentingViewController?.dismissViewControllerAnimated(true, completion: nil)
But nothing seems to happen. So to wrap it all up, any idea on how I can "dismiss" the navigation controller from the "home page"? Thanks!
Try
self.navigationController?.popViewControllerAnimated(true)
Update: Swift 4.2
self.navigationController?.popViewController(animated: true)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With