Action sheets shown on a popover-presented controller do not preserve their position after rotation

Number:rdar://27076273 Date Originated:29-Jun-2016 11:29 AM
Status:Open Resolved:
Product:iOS Product Version:9.3.2 (also 8.x and 10.x)
Classification:UI/Usability Reproducible:Always

When showing a UIAlertController with the UIAlertControllerStyleActionSheet style on a UIViewController that is presented as a popover, the action sheet arrow no longer points at the correct view after rotation. This only happens when reseting the action sheet over a popover-presented controller. 

Steps to Reproduce:

Run the example project on an iPad (or iPad simulator). Follow the on screen instructions.

Expected Results:

The action sheet would point to the sourceView / rect before and after rotation. Just like the main popover points to the same location. 

Actual Results:

The action sheet arrow is offset after rotating and no longer points at the sourceView. See the attached screenshots for details. 


iPad, iOS 8, 9 and 10 beta1


After investigating the issue, it seems that the sourceView is not yet updated to the correct position when the action sheet gets the opportunity to lay out its position after rotation. The correct position for the sourceView is only becomes available in the next run loop iteration. This is a duplicate of rdar://27074874


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at 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!