Vote count:
 
 0 
I'm implementing a single sign on in my app (user needs to login only once).
but the user can sign out if he wants.
i will explain my problem with a use case flow.
FLOW: 1. loginViewController -> user presses login -> i segue to appNavigationController (HomePageViewController is root viewController) 2. HomePageViewController -> user signs out of app -> i segue back to login page 3. user sign's back in.
now i have a problem.
i get an error:
Warning: Attempt to present on whose view is not in the window hierarchy!
and i don't know if this is the problem but the navigationController is saving the first homeViewController and its not emptying the stack i tried to pop the homeViewController in viewDidDisappear it didn't work the stack still saves the first homeViewController
Any suggestions? Thanks
segue back and forth between viewcontrollers
Aucun commentaire:
Enregistrer un commentaire