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

Python Equivalent for matlab cart2pol and pol2cart -

sip - Call SipJs to Asterisk 12 -

java - Joda Time Interval Not returning what I expect -