title: Prevent animation on UIPopover dismissed by tap outside?
body: <p>When a user taps outside the popover, the dismissal is animated. Is there a way to set that dismissal animation to NO? I have googled and searched on Stack extensively. </p>
  
  <p>The docs for UIPopover state:</p>
  
  <blockquote>
    <p>When displayed, taps outside of the popover window cause the popover
    to be dismissed automatically. To allow the user to interact with the
    specified views and not dismiss the popover, you can assign one or
    more views to the passthroughViews property. Taps inside the popover
    window do not automatically cause the popover to be dismissed. Your
    view and view controller code must handle actions and events inside
    the popover explicitly and call the dismissPopoverAnimated: method as
    needed.</p>
  </blockquote>
  
  <p>I have implemented the <code>dismissPopoverAnimated:</code> method with <code>NO</code> and that works great for all the cases when I call that method.</p>
  
  <p>The problem is when a user taps outside the popover to dismiss, <code>dismissPopoverAnimated:</code> is not called. </p>
  
  <blockquote>
    <p>taps outside of the popover window cause the popover
    to be dismissed automatically.</p>
  </blockquote>
  
  <p><em>And that dismissal is animated.</em> There seems to be no way to control that dismissal. I am using the popover to present a color picker for a drawing app. Taps to draw are not registered until the popover has finished animating out. This creates a noticeable delay as you are not able to draw immediately but must wait for the animation to complete. </p>
  
  <p>I thought that <code>- (BOOL)popoverControllerShouldDismissPopover:(UIPopoverController *)popoverController</code> could work but there is no way AFAIK to set the animation property in this method. Just return yes or no. </p>
  
  <p>Is there a different method I can implement to be able to set the animation to NO? </p>