我有一个 SWRevealViewController ,它会打开一个侧边菜单,我在Storyboard中手动连接了segue。我想在单击一个单元格后以编程方式使用 performSegueWithIdentifier ,但我不知道如何访问该表的“Cell Clicked”方法。有没有人对这个特殊的图书馆有经验,可能知道怎么做?
答案 0 :(得分:0)
- (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];
}
使用此