Abd*_*zil 4 uitableview ios swrevealviewcontroller ios9
当我使用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];
}
}
Run Code Online (Sandbox Code Playgroud)
由于未捕获的异常'NSInvalidArgumentException'而终止应用程序,原因:' - [SWRevealViewControllerSegue setDestinationContainmentContext:]:无法识别的选择器发送到实例0x175c5f90'
请帮我.
归档时间: |
|
查看次数: |
270 次 |
最近记录: |