我有一个SWRevealViewController,可以打开侧面菜单,从该菜单可以在Storyboard中手动连接segue。单击单元格后,我想以编程方式使用performSegueWithIdentifier,但是我不知道如何访问表的“单元格单击”方法。是否有人对这个特定的库有经验,可能会知道如何做?
最佳答案
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
SWRevealViewController *revealController = self.revealViewController;
revealController.panGestureRecognizer.enabled = NO;
UIViewController *objViewController = [[UIViewController alloc]initWithNibName:@"UIViewController" bundle:nil];
UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:objViewController];
[revealController pushFrontViewController:navigationController animated:YES];
}
用这个
关于ios - 我如何访问SWRevealViewController表单元,以便可以执行SegueWithIdentifier,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/34855768/