title: Selecting Tabbar item in iOS
body: <p>My app has #hashtags that can be selected. </p>
  
  <p>We have only 3 tabs in our TabBar, MainVC, ProfileVC and TagVC. TagDetailVC is typically accessed via TagVC. </p>
  
  <p>When the user selects a tag, she will be directed to TagDetailViewController. </p>
  
  <p><strong>EDIT</strong> I hooked up a tabbarController on storyboard. </p>
  
  <p>Right now I have this: </p>
  
  <pre><code>TagDetailViewController *dest = [[TagDetailViewController alloc] init];
  UINavigationController *nav = [self.tabBarController.viewControllers objectAtIndex:2];
  [nav pushViewController:dest animated:YES];
  </code></pre>
  
  <p>However, all I am seeing right now is TagVC. I placed a log a statement in viewDidLoad in TagDetailVC and it did not show. </p>
  
  <p>For the record, this is how my story board is organized: </p>
  
  <pre><code>TabBarController -&gt; NavigationVC -&gt; MainVC ... 
                   -&gt; NavigationVC -&gt; ProfileVC ...  
                   -&gt; NavigationVC -&gt; TagVC -&gt; TagDetailVC
  </code></pre>
  
  <p>I am interested to have the tabBar select TagVC and then push TagDetailVC onto the navigationController of TagVC. The behavior that I am expecting when a user presses a tag is: 
  1. Tab is selected at TagVC
  2. TagDetailVC is pushed onto the NavigationVC of TagVC.</p>
  
  <p>What am I doing wrong? </p>