Sto cercando il seguente codice:Come si imposta correttamente il titolo NavigationController di UIViewController?
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
Thing *sub = [[subscriptions objectAtIndex:indexPath.row] retain];
StoriesViewController *thing = [[StoriesViewController alloc] initWithThing:sub];
thing.navigationController.title = sub.title;
[self.navigationController pushViewController:thing animated:YES];
[thing release];
[sub release];
[tableView deselectRowAtIndexPath:indexPath animated:YES];
}
ho pensato che questo è il modo di impostare correttamente il titolo per spingere il regolatore. Ho provato a thing.title invece di impostare il titolo di TabBarItem.
più a fondo discusso qui: http://stackoverflow.com/questions/2280710/iphone-setting-navigation-bar-title –