Is there a way to know when the dismissModalViewControllerAnimated is initiated and when it is completed (such as the idiom for viewWillAppear and viewDidAppear)? Unlike other animations, this one doesn’t seem to have a delegate that tells you.
Is there a way to know when the dismissModalViewControllerAnimated is initiated and when it
Share
Yes, and easier than you think.
When dismissModalViewControllerAnimated: is called, the underlying view (the one about to appear) will receive a viewWillAppear message and a viewDidAppear message.
Caveat: make sure your view controllers are hooked up properly or these messages get lost.