1
我想在點擊行時顯示詳細的UItable視圖。我用過如何導航點擊行到另一個UITableView?
- (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有一個導航控制器實現,我不必創建導航控制器。但是當我點擊行時,它不能導航到第二個view.AM我必須在nib文件上做一些連接?我只在File-> New-> UIViewCOntroller中創建了這個PhotoListViewController,並且選擇了UITableView。
編輯:解決