调用视图控制器而不推送其视图
有3个视图view1,view2,view3
From view1 there is a function which calls view2
{
view2* view2Controller =[[view2 alloc]initWithNibName:@"view2" bundle:nil];
[ view2Controller SessionMaintained];
// [self.navigationController pushViewController:view2Controller animated:YES];
}
now in view 2 call is made to view3
{
view3* view3Controller =[[view3 alloc]initWithNibName:@"view3" bundle:nil];
[ view3Controller SessionMaintained];
[self.navigationController pushViewController:view3Controller animated:YES];
}
现在我想直接推送view3而不推送view2
Having 3 views view1,view2,view3
From view1 there is a function which calls view2
{
view2* view2Controller =[[view2 alloc]initWithNibName:@"view2" bundle:nil];
[ view2Controller SessionMaintained];
// [self.navigationController pushViewController:view2Controller animated:YES];
}
now in view 2 call is made to view3
{
view3* view3Controller =[[view3 alloc]initWithNibName:@"view3" bundle:nil];
[ view3Controller SessionMaintained];
[self.navigationController pushViewController:view3Controller animated:YES];
}
now i want to push view3 directly without pushing view2
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
直接创建View3对象并推入View1有什么问题?
Whats the problem in directly creating the View3 object and push in View1 ?
所以我正在回答你的问题本身
从 view1 有一个函数
现在在视图 2 中调用 view2 (showView3 方法),调用 view3
So I am making answer with your question itself
From view1 there is a function which calls view2
now in view 2 (showView3 method), call is made to view3