Search code examples
iosobjective-cicloud

URL schemes of common iOS apps


I'd like to know if there is a list of custom URL schemes for the most popular iOS apps, such as Keynote, Numbers, Pages, Evernote, etc. I'd also like to know what parameters to use for these URLs.

The reason I need this is that I have an app on the App Store, and most users are asking me to provide 'Open With...' functionality from within the app once they select a file from their iCloud Drive.


Solution

  • Instead of using schemes you should use UIDocumentInteractionController.

    If you want to open a file, you would instantiate it like this:

    UIDocumentInteractionController * controller= [UIDocumentInteractionController interactionControllerWithURL:yourFileURL];
    

    and then you can present it with:

    [controller presentOpenInMenuFromRect:yourRect inView:yourView animated:YES ];
    

    Here is a tutorial with demo project