title: Programatically switching tabs using selectedViewController property
body: <p>I've used search already, haven't found an answer.</p>
  
  <p>Trying to switch like this:</p>
  
  <pre><code>[self. tabBarController.selectedViewController OptionsViewContorller];
  </code></pre>
  
  <p>and like this:</p>
  
  <pre><code> [self.tabBarController.selectedViewController = self.tabBarController.viewControllers     objectAtIndex:3];
  </code></pre>
  
  <p>but it doesn't work, i also tried and advice to change </p>
  
  <pre><code>self.tabBarController.selectedIndex
  </code></pre>
  
  <p>but it only changes at tab bar not a view.</p>