2016-07-20 5 views
0

ich zur Zeit den folgenden Code durch programmatisch erstellt Navigation Controller sehen meinen View ControllerWie Controller POP verwende

FilterIncident *filterIncident_VC=[[FilterIncident alloc]init]; 
[email protected]"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]; 

und für poping i den folgenden Code kann nicht

WGNMenuNavigationController *navigationController = [[WGNMenuNavigationController alloc] initWithRootViewController:self.containerViewController]; 
[navigationController popViewControllerAnimated:YES]; 

ich zu zeigen, Pop meine Ansicht Controller. Irgendwelche Hilfe. Danke im Voraus.

Antwort

1

Sie können einen ViewController nur aufrufen, wenn und bis Sie ihn drücken. Aus deinem Code scheint es, dass du es nicht von irgendwoher schubst.