【发布时间】:2011-12-05 04:31:09
【问题描述】:
这是我的代码.....
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
[tableView deselectRowAtIndexPath:indexPath animated:NO];
[self performSegueWithIdentifier:@"BowlerDetail" sender:self];
}
我得到的只是该单元格仍处于选中状态,而我的详细视图未显示。是的,我已经检查过了,“BowlerDetail”是转场的名称。我收到的错误消息是 - 'NSInternalInconsistencyException',原因:'-[UITableViewController loadView] 加载了“tc8-Hk-kaK-view-YJA-Me-wti” nib 但没有得到 UITableView。
感谢任何帮助。
编辑:在 xCode 4.2 之前的日子里,这就是我之前在这里实现目标的方式。
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
[tableView deselectRowAtIndexPath:indexPath animated:NO];
DetailView *detailVC = [[DetailView alloc] initWithNibName:nil bundle:nil];
[self.navigationController pushViewController:detailVC animated:YES];
[detailVC release];
}
【问题讨论】:
标签: iphone ios uitableview xcode4.2 didselectrowatindexpath