I have a tabcontroller app and I want to forbid the to user go to a certain tab if he is not logged in. Right now I have overridden this tabBarController function.
#pragma mark - TabBar Controller functions
- (BOOL)tabBarController:(UITabBarController *)tabBarController shouldSelectViewController:(UIViewController *)viewController {}
I really don’t know how to tell the tabBarController to redirect the user to another tab.
Any ideas?
You could for example not display the specific view controller while the user is not logged in. After he logged in change the available controllers using
Or if you really just want to switch programmatically the displayed tab use