从presentModalViewController推送uiviewcontroller
我使用 presentModalViewController
显示视图。从这个 UIView
中,我想使用 UINavigationController
推送 UIView
。 我尝试了下面的代码
[self.parentViewController.navigationController
pushViewController:objViewFullScreen
animated:YES];
,但它对我不起作用。所以请有人建议我如何从 ModelViewController 推送视图。
谢谢
I Show a view using presentModalViewController
. and from this UIView
I want to push a UIView
using UINavigationController
.
I tried below code for this
[self.parentViewController.navigationController
pushViewController:objViewFullScreen
animated:YES];
But it did not works for me. so please can any one suggest how I push a view from ModelViewController
.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
首先,您必须在导航控制器中呈现模态视图控制器:
然后在
MyViewController
中您可以执行以下操作:First you have to present your modal view controller inside a navigation controller:
Then inside
MyViewController
you can do: