【发布时间】:2012-12-19 08:03:10
【问题描述】:
在 iOS 中,提交 modalViewController 非常简单:
[self presentModalViewController:controller animated:YES];
或者:
[[[[[UIApplication sharedApplication] delegate] window] rootViewController] presentModalViewController:controller animated:YES];
在modalViewController(如navigationController)内,您可以再次呈现modalViewController。有没有办法检测正在呈现多少个模态视图控制器?否则也许挂钩presentModalViewController:animated: 和dismissModalViewControllerAnimated: 是个好主意?谢谢!
【问题讨论】:
-
目标是什么?也许如果您告诉我们知道这一点的意义,我们可以为您提供帮助。
标签: ios cocoa presentmodalviewcontroller