Open bkobash opened 9 years ago
Actually - never mind, I think I figured the second part out. (When the user clicks the "Create" or "Sign In" button, I just pop back to the first ViewController before I start my segue to the TabBarController. So the NavigationController is back to its original state in the background.)
After the user taps a CTA in the welcome screen, I present a navigation controller as a modal view, and the user automatically advances to the second screen (bypassing the "Sign Up/Log In" screen). I had to do this using prepareForSegue, and sending a boolean to the navigation controller's first screen (so the screen doesn't get bypassed in any other scenario). Is there a conventionally easier way to do this?
When the user taps log out, I just set up a modal segue to point back to the original root view controller. But, I would prefer to 1) dismiss the tab bar controller (since it's already a modal view), and 2) automatically pop back to the first screen in the parent navigation controller. Is there a way to do this easily, i.e., without setting up delegates? Otherwise, I have a situation where I could have infinitely nested modal views. @codepathreview