在SWRevealViewController上的didselect tableview上出错

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'

请帮我.

Sad*_*dia 6

我有同样的问题,我通过将segue类型更改为"Custom"而不是"Push"来修复它