Is there a way to implement your own mechanism to detect when dismissModalViewControllerAnimated disappears? I’ve tried viewdiddisappear, but this is not being called as I think it only called when subview are removed from a view. With the case of modals, I think iOS treats them differently.
Any ideas?
I would like my delegate to do some action after this modal view has been dismissed.
Thanks.
Use NSNotificationCenter to post a notification before you dismiss the view controller. Add your other view controllers as observers. That’s an easy way to broadcast events.
So before you dismiss:
And then in your view controllers
The callback would be something like: