I have an UIViewController which was displayed by invoking the presentModalViewController method and now I want to dismiss it with the dismissModalViewControllerAnimated: .
Everything works fine but is there any event or a delegate method which I can catch to handle the dismissing of my UIViewController?
I have an UIViewController which was displayed by invoking the presentModalViewController method and now
Share
Typically since it is your code that is doing the dismissal, there is no need for an event. if you require one for some reason (decoupling, etc) then you can easily use the NSNotificationCenter.
It’s probably worth mentioning that you can pass a NSDictionary* into userInfo and if all goes well will show up on the other end, so you don’t have to create your own sub-classes or special event wrappers just to pass around data between events.