the title within the navigation bar is taken from the navigation item from it's top view controller. It sounds like its top view controller, in your case, is the tab bar controller, so you'll want to set the title of the tab bar controller whenever the tab bar changes.
Specifically, you'll want to assign a UITabBarControllerDelegate
to the tab bar controller's delegate
property and implement the following method:
- (void)tabBarController:(UITabBarController *)tabBarController didSelectViewController:(UIViewController *)viewController {
tabBarController.title = viewController.title;
}
The line is equivalent to
tabBarController.navigationItem.title = viewController.navigationItem.title;
So you can use either one. Any way, set the titles of the individual tab view controllers to whatever title you want, and then the title will change when the tabs change.