title: iPhone Objective-C: Programmatically change title of tab bar item in tab bar created using IB?
body: <p>Right now, I am setting the title in the viewDidLoad of the root view of the tab, which only changes when I click on the tab. I want this to be set before I select the tab. I tried something like:</p>
  
  <pre><code>[[self.parentViewController.tabBarController.tabBar.items objectAtIndex:2] title] = @"string";
  </code></pre>
  
  <p>in the first view that loads in another tab, but there is clearly something wrong since I get a left operand error. </p>
  
  <p>What is the correct way to achieve what I am trying to do? </p>