我实施了this tutorial。然而,有区别,而不是从talecell到viewcontroller做我的seque.I从整个tableview做到了查看控制器。点击表格行,我称之为。
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath)
{
performSegue(withIdentifier: "showcheckin", sender: self)
}
结果是,顶部的导航栏项目消失了。
答案 0 :(得分:-1)
请创建这样的导航,不要使用segue。
SWRevealViewController *revealController = self.revealViewController;
[revealController setFrontViewController:rootViewController2 animated:YES];
UIStoryboard *storyboard =
[UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil];
rootViewController2 = [storyboard
instantiateViewControllerWithIdentifier:@"Your_ViewCon_Name"];
navController = [[UINavigationController alloc]
initWithRootViewController:rootViewController2];
navController.navigationBar.hidden = YES;
[navController setViewControllers:@[ rootViewController2 ] animated:YES];
[[self navigationController] setNavigationBarHidden:YES animated:YES];
[self.revealViewController setFrontViewPosition:FrontViewPositionLeft
animated:YES];