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

php - Select box validation (in laravel) -

pandas - Iterate on Groupby Object's fields -

Creating a sparse matrix in Matlab with a specified number of independent Bernoulli +-1 nonzero entries -