Files App Integration
iOS 11 brought the Files app. Integrating with it is relatively simple. Writing a document provider (i.e. something like dropbox, or secure shellfish) is much more involved.
On-Device Integration
Mostly copied from what Big Nerd Ranch wrote. This is really two things you need to add to your info.plist:
- Set
UIFileSharingEnabled
(Application supports iTunes file sharing) toYES
- Set
LSSupportsOpeningDocumentsInPlace
(Supports opening documents in place) toYES
.
And that’s pretty much it.
Note that setting this will make ALL of the contents of $APP_ROOT/Documents
visible to the files app, so any private files you kept there will also be visible. These should instead be moved to the Application Support folder.
Additional Links
- AppCoda lists some more things you can do, such as using a
UIDocumentBrowser
- Little Bites of Cocoa has a bite on opening files from the files app
Last updated: 2020-06-07 16:24:37 -0700