When the user goes beyond the popover, the dismissal is animated. Is there any way to establish that the dismissal animation is NO? I have searched Stack many times.
Documents for UIPopover status:
When displayed, taps outside the popover window cause a popover to automatically reject. To allow the user to interact with and not reject the popover, you can assign one or more views of the passthroughViews property. Bends inside the popper window do not automatically cause popover deviations. Your view and view of the controller code should handle the actions and events inside the popover explicitly and call the rejectPopoverAnimated: as method as necessary.
I have implemented the dismissPopoverAnimated: method with NO , and this works great for all cases when I call this method.
The problem is that the user disconnects outside the popover to reject, dismissPopoverAnimated: not called.
outside the popover window, a popover is called to automatically reject.
And this dismissal is animated. There seems to be no way to control this dismissal. I am using popover to represent a color picker for a paint application. Drawing taps are not registered until the popover finishes the animation. This creates a noticeable delay, since you cannot draw immediately, but must wait for the animation to complete.
I thought that - (BOOL)popoverControllerShouldDismissPopover:(UIPopoverController *)popoverController may work, but AFAIK cannot set the animation property in this method. Just return yes or no.
Is there any other way that I can implement to set the animation to NO?
source share