For security reasons, I need the user to register every time my application opens. I would like to do this when the application is about to close reset it to its original view. I know from the view controller I can use the following code:
[[self navigationController] popToRootViewControllerAnimated:NO];
I am not sure how to adapt this to work with the application delegate.
In the original view, I have it set to display the modality of the input in viewDidLoad. It seems that this only works the first time, and not in the application when using the back button, so I hope that I will not use this method to display the login screen.
For clarification, I understand that I will do this in the application’s application, I’m looking for a specific bit of code that I can use to tell the application to reset the view.
source
share