title: How to switch tab programmatically in an xcode 4.3 tab application
body: <p>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.  </p>
  
  <pre><code>#pragma mark - TabBar Controller functions
  - (BOOL)tabBarController:(UITabBarController *)tabBarController shouldSelectViewController:(UIViewController *)viewController {}
  </code></pre>
  
  <p>I really don't know how to tell the tabBarController to redirect the user to another tab.</p>
  
  <p>Any ideas?</p>