Опитвам се да покажа подробен изглед на 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.
РЕДАКТИРАНЕ: РЕШЕНО