title: UITabbarController default tab highlighted
body: <p>So I'm attempting to deal with uitabbarcontroller and wanted to have a default tab be selected when the view loads.</p>
  
  <p>I have tried setting the </p>
  
  <pre><code>@property (nonatomic) int selectedIndex;
  </code></pre>
  
  <p>however this just sets which viewcontroller is being shown, not the actual tabbar being selected</p>
  
  <p>I also tried this line</p>
  
  <pre><code>[self tabBar].selectedItem = [[[self tabBar] items] objectAtIndex:0];
  </code></pre>
  
  <p>but it crashes as you are not allowed to mutate the tabbar of a tabbarcontroller</p>
  
  <p>Any help with this?</p>
  
  <p>Thanks</p>