UIDocumentInteraction query

Discussion in 'iOS Programming' started by sagarshivam, Feb 19, 2012.

  1. sagarshivam macrumors member

    May 24, 2011
    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?

  2. PhoneyDeveloper macrumors 68040


    Sep 2, 2008
    Look at Apple's DocInteraction sample code. It does exactly what you're describing. It works fine on the Sim.

Share This Page