【发布时间】:2015-01-13 02:33:40
【问题描述】:
我正在添加一个带有表格视图和详细信息视图的拆分 ViewController:
The tableview works fine the cell are been populated and everything but when one of the cells is been selected I get the error:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Receiver (<masterViewController: 0x15ce0e9b0>) has no segue with identifier 'detailView''
这是我的代码:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
[self performSegueWithIdentifier:@"detailView" sender:[_arrayOfFiles objectAtIndex:indexPath.row]];
}
这里是detailView的信息:
我在情节提要中添加标识符:
但现在我收到以下错误:
* 由于未捕获的异常“NSGenericException”而终止应用程序,原因:“找不到用于 segue 'show tableVIew' 的导航控制器。只有当源控制器由 UINavigationController 的实例管理时,才能使用推送 segue。 * 首先抛出调用栈:
【问题讨论】:
标签: ios objective-c xcode uitableview uistoryboard