In iOS, presenting a modalViewController
is super easy:
[self presentModalViewController:controller animated:YES];
Or:
[[[[[UIApplication sharedApplication] delegate] window] rootViewController] presentModalViewController:controller animated:YES];
Within a modalViewController
(such as navigationController
), you can present a modalViewController
again. Is there a way to detect how many modal view controllers are being presented? Otherwise maybe hooking the presentModalViewController:animated:
and dismissModalViewControllerAnimated:
would be a good idea? Thanks!