One of the biggest problems with popovers is how the delegate's dismiss methods (-[popoverPresentationControllerShouldDismissPopover:]
, -[popoverPresentationControllerDidDismissPopover:]
) are only called if the user dismisses the popover, not if the popover is dismissed programmatically.
There's lots of important code in my dismiss methods that needs to get called. Is there an elegant solution to make sure this code gets called even on programmatic dismissal? (Sure, I can call "should" and "did" every time I dismiss...but that's error-prone and kind of gross.)
Thanks.