【发布时间】:2012-11-10 09:18:43
【问题描述】:
在我的应用程序中,我有三层模式视图控制器。
1) 所以我的rootViewController 是tabbar。
2) 在applicationDidFinishLaunching 上,我正在呈现viewController,例如viewController A 模态在tabbar 上方。
3) 单击“viewController A”中的按钮时,我会以模态方式呈现另一个viewController B。
4) 在viewController B 上的按钮操作以模态方式将navigationController 与其rootViewController 呈现为viewController C。
5) 最后从viewController C,我想回到viewController A。
我尝试过使用
[[[self parentViewController] parentViewController]dismissModalViewControllerAnimated:YES];
在viewController C,但它让我回到viewController B而不是viewController A。
我怎样才能恢复到viewController A。
任何帮助将不胜感激。
【问题讨论】:
标签: iphone ios xcode ipad ios5