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

Member with no value in F# -

java - Joda Time Interval Not returning what I expect -

c# - Showing a SelectedItem's Property -