【发布时间】:2012-07-11 08:41:18
【问题描述】:
我的 viewController 是这样的:
startViewController ------> menuViewController
\
\ ------> ImportantViewController
从startMenu 我推menuView 然后我再次推importantView,我将importantView 作为我的rootViewcontroller,让它成为我的父视图,如下所示:
UINavigationController *navControl = [[UINavigationController alloc] initWithRootViewController: vc];
[self presentModalViewController: navControl animated: YES];
从那以后我通过importantView 推送了视图:
[self.navigationController pushViewController:vc animated:YES];
现在我的概率是这样的:
ImportantVIew 作为我的rootView 推送到menuView 推送到ViewA 然后推送到视图B 然后选择是返回menuView 还是返回ViewA。
我的问题是:
我想将我的ViewB 设为rootView,然后当我转到ImportantView 时,它会将其返回为rootView。是否可以有 2 个 rootView?还是我需要互相替换?
我们将不胜感激。谢谢。
【问题讨论】: