title: iOS9 popover always points to top-left corner of anchor
body: <p>I'm using a storyboard segue that presents a view controller as popover. The seque has a custom <code>UIView</code> as its anchor. On pre-iOS9 the popover would correctly point to the centre-bottom of the custom <code>UIView</code> (presented below the UIView). On iOS9 it points to the top-left corner of the <code>UIView</code>.</p>
  
  <p>I did try to trace all selector calls to the custom <code>UIView</code> to find out if there is anything I may need to implement in my custom <code>UIView</code> to provide the 'hotspot' for the popover but couldn't find anything</p>
  
  <p>Any ideas..? Thanks</p>
  
  <p><strong>Thanks to @Igor Camilo his reply - in case it's useful to some, this is how I fixed this in my code</strong>:</p>
  
  <pre><code>- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
  
       UIPopoverPresentationController* possiblePopOver = segue.destinationViewController.popoverPresentationController;
       if (possiblePopOver != nil) {
           //
           // iOS9 -- ensure correct sourceRect
           //
           possiblePopOver.sourceRect = possiblePopOver.sourceView.bounds;
       }
      ...
   }
  </code></pre>
  
  <p><strong>Example:</strong> 'Short' button triggers a popover, the popover points to the top-left corner of 'Sort' control</p>
  
  <p><a href="https://i.stack.imgur.com/NDssv.gif"><img src="https://i.stack.imgur.com/NDssv.gif" alt="Resulting popover"></a></p>
  
  <p><a href="https://i.stack.imgur.com/1MrZk.png"><img src="https://i.stack.imgur.com/1MrZk.png" alt="Segue settings"></a></p>