【发布时间】:2016-03-06 07:54:24
【问题描述】:
当我使用SWRevealViewController 类使用滑出菜单时,它在 iphone 模拟器中正常工作。但是当我尝试在 iphone 5 设备中运行进行测试时,在选择菜单按钮时,它会正确显示滑出菜单,但不幸的是,在选择单元格时,它崩溃并显示以下错误。但模拟器中没有此类错误。
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
indexPath = [[self tableView] indexPathForSelectedRow];
if (indexPath.row==0) {
[self performSegueWithIdentifier:@"home" sender:indexPath];
}
else if (indexPath.row==1) {
[self performSegueWithIdentifier:@"cartme" sender:indexPath];
}
else {
[self performSegueWithIdentifier:@"changelocation" sender:indexPath];
}
}
由于未捕获的异常而终止应用程序 'NSInvalidArgumentException',原因:'-[SWRevealViewControllerSegue setDestinationContainmentContext:]: 无法识别的选择器发送到 实例 0x175c5f90'
请帮帮我。
【问题讨论】:
-
分享
didSelectRowForIndexPath方法的代码。
标签: ios uitableview ios9 swrevealviewcontroller