I have a modal view controller where a user enters information. When they hit a submit button, that information is sent to the server and the modal view controller is dismissed.
However, if the user isn’t signed in, when they click submit, it loads a sign in screen (as another modal view controller). After signing in, the sign in view controller is dismissed, their information is sent to the server, and the view controller is dismissed. The problem is, the view controller where they entered information remains on the screen.
I can fix the problem by delaying the dismissal of the data entry view controller. It seems that if I dismiss two view controllers quickly together, the second one remains.
Has anyone else seen this?
I’ve determined the problem is caused because the first modal dismissed (the sign in view controller) doesn’t disappear before I dismiss the second modal (the data entry view controller). When the second dismiss call occurs, the sign in view controller is still considered the top view controller, so nothing happens to the second VC.