lundi 25 juillet 2016

Swift: Skipping first (and more) screens in a Navigation Controller stack

I have a NavigationController in my app. The first screen in its stack is TermsConditionVC, then LoginVC then MainVC. When I run, it goes directly to TermsConditionsVC.

However, depending upon, if the user has once agreed to the TermsConditions and/or is Logged in or not, I wish to skip TermsConditionsVC and/or LoginVC and go straight to MainVC.

It does not make sense for me to have multiple Navigation Controllers in this situation but I cant figure out how to skip screen (especially the very first screen in the Navigation Controller stack?

Aucun commentaire:

Enregistrer un commentaire