如果我使用 </p>
NGViewController *ngView = [[NGViewController alloc]initWithNibName:Nil bundle:Nil];
[self presentViewController:ngView animated:NO completion:nil];
上述代码控制器将转到NGViewController页面。
但如果我使用这个导航控制器
NGViewController *ngView = [[NGViewController alloc]initWithNibName:Nil bundle:Nil];
[self.navigationController pushViewController:ngView animated:YES];
控制器将在同一页中。
有人能告诉我问题是什么吗?
UINavigationController
?如果没有,那么self.navigationController
将会是nil
。 - borrrdenUINavigation
进行开发?如果没有,那么将其转换为基于 Navigation 的应用程序,它就可以正常工作了。 - Dipen Panchasara