ios - Proper way to logout and return to the rootViewController -
I have a logout mechanism in my iOS application when the user clicks on a button, the user is logged out. How can I properly redirect to the rootview controller?
Do I just do this:
[self current view controller: photo animated: yes complete: zero];
try it
[self.navigationController popToRootViewControllerAnimated :Yes];
Comments
Post a Comment