我有一个从 App Delegate 显示的 ModalViewController。ModalViewController 启动良好,并将执行各种操作,例如 [self dismissModalViewControllerAnimated:YES]; 正如预期的那样。
解雇有效,但我无法让 ModalViewController 导航/滑动到下一个视图。我的代码中没有收到任何错误或警告。
-(IBAction)signUpButtonTapped {
// i need to get the control for main navigation controller
HHHTabAppDelegate *appDelegate = (HHHTabAppDelegate *)[[UIApplication sharedApplication]delegate];
[appDelegate.navigationController popToRootViewControllerAnimated:NO];
// create object from app main view to push it
SignUpViewController *signUpViewController = [[SignUpViewController alloc] initWithNibName:@"SignUpViewController" bundle:nil];
[appDelegate.navigationController pushViewController:signUpViewController animated:YES];
}