James Cramer
James Cramer

Reputation: 465

On My iPhone / On My iPad folders, how to create a folder for my app?

Can someone show me how to create a folder for my app within the "On My iPhone" location that is visible via Files App?

I notice other apps have folders create there with their icons, but I can find ZERO developer documentation that talks about the "On My iPhone" or "On My iPad" folders.

Upvotes: 5

Views: 2062

Answers (1)

Michael Dautermann
Michael Dautermann

Reputation: 89509

To get your files can appear in the Files app, you must first specify that your app supports "Open in Place" and "File Sharing Enabled".

These options are configured using keys in your Info.plist file. The first key is UIFileSharingEnabled, which enables iTunes sharing of files in your Documents folder.

The second key is LSSupportsOpeningDocumentsInPlace, which grants the local file provider access to files in your Documents folder.

Add these two keys to your Info.plist and set their values to YES.

Add These Keys to your Info.plist

Everything I'm saying here I found in this BigNerd tutorial.

Upvotes: 10

Related Questions