如何通过单击行导航到另一个UITableView?

如何通过单击行导航到另一个UITableView?,uitableview,iphone-sdk-3.0,uinavigationcontroller,Uitableview,Iphone Sdk 3.0,Uinavigationcontroller,我试图在单击行时显示详细的UItable视图。我曾经 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { // Navigation logic may go here. Create and push another view controller. // AnotherViewController *anotherViewController = [[Ano

我试图在单击行时显示详细的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文件上建立一些连接吗?我只在文件->新建->UIViewCOntroller和选定的UITableView中创建了这个PhotoListViewController


编辑:已解决

我解决了我的问题。我应该使用UINAvigation对象。我以为UITable有,但没有。)