Thursday 8 August 2013

Is there a clean way to perform a segue and "forget" the last ViewController?

Is there a clean way to perform a segue and "forget" the last ViewController?

I'm thinking of the typical Login->Register->App flow.
If they Go
Login->Register->App
I want the underlying UINavigationController to be
Login->App
I don't want any back navigation to go back to the registration page.
Likewise, it's best to clear it from memory.
Is there a simple way to do this? Or do I need to pop to the "Login"
controller and then segue to the "App"?

No comments:

Post a Comment