title: Change title of navbar based on which tab is selected?
body: <p>I have an iOS app where there is a navigation controller as the root controller but at one part there is a tab bar to select between views in one of the nav bars. It looks similar to the iTunes app (navigation bar on top, tab bar on the bottom). I want the title of my navigation bar to change based on which tab is selected. I have two separate controller files for each tab. Here is what I have tried to use in each so far to fix this to no avail:</p>
  
  <pre><code>self.navigationItem.title = @"Title";
  self.navigationController.navigationItem.title = @"title";
  [self.navigationController setTitle:@"Live"];    
  [self setTitle:@"Top Title"];
  </code></pre>
  
  <p>How do I change the NavBar title based on which tab is pressed?</p>