Estoy tratando el siguiente código:¿Cómo configuro correctamente el título de NavigationController de 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];
}
pensé que esta es la forma de configurar correctamente el título para empujar el controlador. Intenté thing.title sin embargo, eso fue establecer el título de TabBarItem en su lugar.
Más bien discutido aquí: http://stackoverflow.com/questions/2280710/iphone-setting-navigation-bar-title –