在 iOS 中,呈现 amodalViewController
非常简单:
[self presentModalViewController:controller animated:YES];
或者:
[[[[[UIApplication sharedApplication] delegate] window] rootViewController] presentModalViewController:controller animated:YES];
在 a modalViewController
(如navigationController
)内,您可以modalViewController
再次呈现 a。有没有办法检测正在呈现多少个模态视图控制器?否则也许挂钩 presentModalViewController:animated:
anddismissModalViewControllerAnimated:
会是个好主意?谢谢!