View Full Version : UIDocumentInteraction query

Feb 19, 2012, 10:34 PM
Dear All

In my split view based app, detail view is an UIWebView and main view contains file list (pdf, image, doc,ppt etc). Also I have created one toolbar on upper part of detail view where "open-in" button is placed.

How is it possible that If I tap on any file in main view, then list of applications (that can open that file ) comes in drop down of "open-in" menu option. I am sure it has to do with UIDocumentInteractionController. But how to get list of supported applications installed on iPad that should come in the drop down list.

Like for, pdf file tapped, options as iAnnotate and other pdf viewer should come which all are installed on the iPad.

Also, I have read somewhere that UIDocumentInteractionController cant be tested on simulator and can be tested on real device only. Is it so?


Feb 20, 2012, 07:19 AM
Look at Apple's DocInteraction sample code. It does exactly what you're describing. It works fine on the Sim.