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.
views:
1483answers:
1
+1
A:
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.
Corey Floyd
2009-06-13 01:41:51
Thanks, my delegate signature was wrong so I thought it wasn't called when dismiss is done.
Boon
2009-06-13 03:02:13
What does this delegate signature look like?
AlvinfromDiaspar
2010-09-29 07:55:40
I have both viewDidAppear and viewDidAppear implemented. but when the modalviewcontroll is called (as a partial-curlup style), these delegates arent called. any ideas?
AlvinfromDiaspar
2010-09-29 08:20:32