Как да навигирате в ред с щракване до друг UITableView?

Опитвам се да покажа подробен изглед на UItable, когато щракна върху ред. използвах

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
// Navigation logic may go here. Create and push another view controller.
// AnotherViewController *anotherViewController = [[AnotherViewController alloc] initWithNibName:@"AnotherView" bundle:nil];
photoListViewController  = [[PhotoListViewController alloc]initWithNibName:@"PhotoListViewController" bundle:[NSBundle mainBundle]];

[self.navigationController pushViewController:photoListViewController animated:YES];
[photoListViewController release];



// [self.navigationController pushViewController:anotherViewController];
// [anotherViewController release];
}

Този PhotoListViewController е празен UITableViewController. Доколкото знам, UITableViewCOntroller има внедрен контролер за навигация и не трябва да създавам контролер за навигация. Но когато щракна върху реда, той не преминава към втори изглед. Трябва ли да направя някаква връзка с nib файл? Създадох само този PhotoListViewController във File->New->UIViewCOntroller и избрах UITableView.

РЕДАКТИРАНЕ: РЕШЕНО


person Ercan    schedule 29.03.2010    source източник


Отговори (1)


Реших проблема си. Трябва да използвам UINAvigation обект. Мислех, че UITable го има, но нямаше))

person Ercan    schedule 30.03.2010