UIDocumentMenuViewController returns 100 on modalPresentationStyle on iOS 10. (UIActivityViewController was affected in iOS 10 beta, but is fixed as of GM)

Number:rdar://28281042 Date Originated:13-Sep-2016 06:46 PM
Status:Open Resolved:
Product:iOS/UIKit Product Version:10GM
Classification:Serious Bug Reproducible:Always
Peter Steinberger13-Sep-2016 06:46 PM


This is essentially the same bug as rdar://27261367, but for UIDocumentMenuViewController. We didn't notice that during the beta phase because we only recently started using it, and noticed that our PDF Viewer (https://pspdfkit.com/viewer/) app beta started crashing as we removed the hack for the now fixed rdar://27261367.

Workaround is acceptable, but other people will trip over the same issue and it might also be an AppCompat problem.

Steps to Reproduce:
See rdar://27261367; replace UIActivityViewController with UIDocumentMenuViewController - everything else is the same.

Expected Results:
UIKit should not leak internal enum states for public properties.

Actual Results:
UIKit leaks internal enum states for public properties.

iOS 10GM


iPhone 6s Plus



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!