title: Selecting index of tabBarController and passing data
body: <p>I want to select the UIViewController at index 0 of my tabbarcontroller while passing data to it. It seems I am accessing the UINavigationController instead. Anyone know why this occurs?</p>
  
  <pre><code>SearchViewController *search = (SearchViewController *)[self.tabBarController.viewControllers objectAtIndex:0];
  [search initWithText:@"This is a test"];
  
  [[self.tabBarController.viewControllers objectAtIndex:1] pushViewController:search animated:NO];
  </code></pre>
  
  <p>// Also receive the error using this:</p>
  
  <pre><code>self.tabBarController.selectedViewController = search;
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>-[UINavigationController initWithText:]: unrecognized selector sent to instance 
  </code></pre>