Change tabbarController's tab programmatically with animation
I want to change tab through code with animation. Exact scenario is that there are 2 tabs with below hierarchy. First tab - Navigation controller - Login controller - Some other controller Second tab - Navigation controller - Screen with Logout button Now, if user presses logout, I need to display login screen. For that I need to switch tab to FirstTab and then popToRootViewController. So what I am doing is on logout button press I send NSNotification to LoginController which in turn executes below method. - (void)logoutButtonPressed { // Go to root controller in navigation controller of first