iOS 10b3: UIDocumentInteractionController does not call its delegate-method documentInteractionControllerDidDismissOpenInMenu: when being dismissed by rotation

Originator:raise.rescue
Number:rdar://27446669 Date Originated:20-Jul-2016 01:26 PM
Status:Open Resolved:
Product:iOS SDK Product Version:iOS 10b3
Classification:Other Bug Reproducible:Always
 
Summary:
When an UIDocumentInteractionController is presented as “open-in”, and the iPad gets rotated, the UIDocumentInteractionController will be dismissed but its documentInteractionControllerDidDismissOpenInMenu-delegate-method is not being called.
The biggest impact of this may be related to custom “Open-in”-UIActivity-implementations in various apps. The UIActivity-implementations rely on the behaviour that any of the delegate-methods are being called, to call “activityDidFinish:” at the correct point of time. As none of the delegates are being called when the device gets rotated, “activityDidFinish:” is never being called and the UIActivityController and all its UIActivities will never be removed from memory, thus, they leak.

Steps to Reproduce:
1. Open the attached project
2. Tap the button
3. Rotate the device

Expected Results:
As the UIDocumentInteractionController is being dismissed, it calls documentInteractionControllerDidDismissOpenInMenu on its delegate.

Actual Results:
UIDocumentInteractionController is being dismissed, but it doesn’t call its delegate-method documentInteractionControllerDidDismissOpenInMenu.

Version:
iOS 10b3

Notes:


Configuration:
iPad Simulator / iPad 4

Attachments:
'UIDocumentInteractionControllerRotationBug.zip' was successfully uploaded.

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!