多个View的调用?

XF1099411376 2012-05-13 09:00:00
有3个View,分别位于3个Xib中,假设为A\B\C界面,由按钮A调用B,B调用C,C如何直接返回到A?我用的presentModelViewController和dismissModelViewContrlloer。只能返回到调用本界面的上一层界面,就是C只能返回到B,如何让C直接返回到A?
...全文
87 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
鹏_子 2012-05-15
  • 打赏
  • 举报
回复
push就是向前推进,pop是向后推进。
XF1099411376 2012-05-15
  • 打赏
  • 举报
回复
这样也行的
lure2009 2012-05-14
  • 打赏
  • 举报
回复

-(void)ReturnA
{
ClassA *theView = [[[ClassA alloc] init] autorelease];
UINavigationController *nextView = [[UINavigationController alloc] initWithRootViewController:theView];
[self presentModalViewController:nextView animated:YES];
[nextView release];

}
相奇 2012-05-14
  • 打赏
  • 举报
回复
推进用Navigation 控件。

压b界面,压c界面
其中有一个方法,可以 pop 到A界面。

29,028

社区成员

发帖
与我相关
我的任务
社区描述
主要讨论与iOS相关的软件和技术
社区管理员
  • iOS
  • 大熊猫侯佩
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧