UIDocumentInteractionController presentOptionsMenuFromRect Severely Slow

Originator:darren.parkinson
Number:rdar://18392126 Date Originated:19 September 2014
Status:Duplicate (Closed) Resolved:No
Product:iOS SDK Product Version:8.0 (12A365)
Classification:Bug Reproducible:Always
 
Using the UIDocumentInteractionController takes a long while to display when using presentOptionsMenuFromRect.  Now with iOS 8, it's taking an unacceptable amount of time to show a list of applications available to open the document.

There are a range of documents, such as PDFs and Powerpoint presentations.  They are all slow, but the powerpoint presentations (pptx) seem to take the longest, I think quite likely because they are larger files.

Looking at the output in XCode, there is a huge memory spike when performing the presentOptionsMenuFromRect method with a message that says "Unknown Activity Items Supplied" along with "org.openxmlformats.presentationml.presentation".

Steps to Reproduce:
1. Create a tabbed application project
2. Add a CollectionViewController tab with UICollectionViewFlowLayout
3. Add some items to the collection view
4. Add a UIDocumentInteractionController
5. Under collectionView:didSelectItemAtIndexPath use the presentOptionsMenuFromRect method to provide options for viewing the document.


Expected Results:
To get the options menu in a timely manner, within a few seconds.

Actual Results:
Takes around 25-30 seconds to present the options menu.

Apparently a duplicate of 17927875 which is still open.

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!