Popover's arrow is badly positioned over buttons when the action comes from the storyboard

Originator:yannick.loriot
Number:rdar://28406575 Date Originated:21/09/2016
Status:Open Resolved:
Product:iOS SDK Product Version:
Classification: Reproducible:
 
Summary:
On a storyboard I have a button and an action attached to it. The action of kind "Present As Popover" display an another view controller.

When I run the project on a simulator (or a device) when I touch the button the arrow is displayed from the top-left corner instead of the bottom-centre (arrow up), left-centre (arrow right), etc.

Steps to Reproduce:
1. Open the PopoverTest.xcodeproj
2. Run the example on simulators or devices
3. Touch the button

Expected Results:
The popover's arrow is in the top-left corner.

Actual Results:
The popover's arrow is in the top-left corner instead of the bottom-centre of the button (arrow up).

Version:
iOS 10.0, Xcode Version 8.0 (8A218a), Swift 3

Notes:
One workaround is to set manually (by code) the sourceRect of the popover view controller.

Configuration:
iPad Mini 2, iPads simulators

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!