iOS では、プレゼンテーションmodalViewControllerは非常に簡単です。
[self presentModalViewController:controller animated:YES];
または:
[[[[[UIApplication sharedApplication] delegate] window] rootViewController] presentModalViewController:controller animated:YES];
内modalViewController( などnavigationController) で、再度 を提示できますmodalViewController。表示されているモーダル ビュー コントローラーの数を検出する方法はありますか? presentModalViewController:animated:それ以外の場合は、 andをフックする dismissModalViewControllerAnimated:ことをお勧めします。ありがとう!