如何在其他模态视图之上呈现模态视图

时间:2009-09-05 09:54:01

标签: iphone cocoa-touch uinavigationcontroller

好的,这可能很容易..

以模态呈现第一个视图控制器:

WelcomeViewController *userWelcome = [[WelcomeViewController alloc] init];
[self.navigationController presentModalViewController:userWelcome animated:YES];
[userWelcome release];

这一切都很好。但是,如何在这个(在任何IBAction中)模拟第二个视图控制器?我是否必须将辅助视图控制器作为第一个模态视图拉出来,还是有更简单的解决方案?

1 个答案:

答案 0 :(得分:0)

如果有人想知道这件事:

如果您想要以模态方式提供多个View控制器,则必须将视图控制器放在新的导航控制器中。

容易不是吗?

相关问题