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

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -