UIPopoverControllerDelegate
protocol have popoverControllerDidDismissPopover:
method which invoked after popover has finished it's dismissal animation. However, if popover is dismissed programmatically, above-mentioned delegate method is not called.
Is there any way to detect the finish of programmatically triggered dismissal animation? In a nutshell, how to implement something like -[UIPopoverController dismissPopoverAnimated:completion:]
?
P.S. Running completion block with 0.5 seconds timer is ugly