title: UITabBar Badging
body: <p>Any idea why this works:</p>
  
  <pre><code>[[[[[self tabBarController] tabBar] items] objectAtIndex:2] 
                                            setBadgeValue:@"Hello"];
  </code></pre>
  
  <p>But this doesn't?</p>
  
  <pre><code>[[self tabBarItem] setBadgeValue:@"Hello"];
  </code></pre>
  
  <p>I would rather not have to provide an explicit tab bar index (2 in the code above). Also, is there a way to get the tab bar index from within the view controller in the case where the first snippet is the only way to make this work?</p>
  
  <p>Thanks.</p>