我目前使用以下代码来显示我的View Controller
FilterIncident *filterIncident_VC=[[FilterIncident alloc]init];
filterIncident_VC.title=@"Filter Incident";
WGNMenuNavigationController *navigationController = [[WGNMenuNavigationController alloc] initWithRootViewController:filterIncident_VC];
navigationController.navigationBar.barTintColor = [UIColor colorWithRed:229/255.0f green:41/255.0f blue:51/255.0f alpha:1.0f];
navigationController.navigationBar.tintColor = [UIColor whiteColor];
[navigationController.navigationBar
setTitleTextAttributes:@{NSForegroundColorAttributeName : [UIColor whiteColor]}];
navigationController.navigationBarHidden = true;
self.frostedViewController.contentViewController = navigationController;
[self.frostedViewController hideMenuViewController];
对于POPing我使用以下代码
WGNMenuNavigationController *navigationController = [[WGNMenuNavigationController alloc] initWithRootViewController:self.containerViewController];
[navigationController popViewControllerAnimated:YES];
我无法弹出我的视图控制器。 任何帮助。提前完成。
答案 0 :(得分:1)
除非推送它,否则无法弹出ViewController。从您的代码来看,您似乎并没有从任何地方推送它。