Question

Our app can deal with say Pages files as an example and needs to both hand off files to other applications as well as receive files from other applications.

So we edit the plist CFBundleDocumentTypes to say that we can deal with Pages files. ('Default') mode.

When the user wants to send a .pages file onto another application (Likely the Pages app) then we call UIDocumentInteractionController.

The UIDocumentInteractionController (too) faithfully lists all applications that can deal with .pages files, and WE are on the list. I think that's confusing to the user, why would I use the UIDocumentInteractionController to hand a file off to US? How do we rid ourselves from the list?

Was it helpful?

Solution

One workaround would have been to unregister your application as capable of opening this file type before showing the UIDocumentInteractionController, and register it back after it's dismissed.

But as the document types that your application is capable of opening is specified in the Info.plist with the CFBundleDocumentTypes key, you can't modify it at runtime. Too bad.

I don't see anything else helpful for this in the APIs.

Your best hope is to file a feature request on radar (Apple's bug report database) https://bugreport.apple.com and why not make your request public on http://www.openradar.me to incite others to do the same.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top