J'essaie le code suivant:Comment définir correctement le titre navigationController d'un 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];
}
Je pensais que c'est la façon dont vous définissez correctement le titre pour pousser le contrôleur. J'ai essayé thing.title cependant qui définissait le titre de TabBarItem à la place.
Plus soigneusement discuté ici: http://stackoverflow.com/questions/2280710/iphone-setting-navigation-bar-title –