Applications can use file shares to allow users to access programs ' user data files. File sharing allows applications to expose /Documents
the content of the application catalog to users through itunes. This allows users to move files back and forth on ipad and desktop computers.
You can use the following steps to enable your application to support file sharing:
Add a key to the application's Info.plist
file UIFileSharingEnabled
and set the key value to YES
.
Place the files you want to share in the application's Documents
directory.
Once the device is plugged into the user's computer, ITunes 9.1 displays a file sharing area in the Apps tab of the selected device.
The user can then add files to the directory or move the files to the desktop computer.
If the application supports file sharing, the Documents
application should be able to recognize and respond appropriately when the file is added to the directory. For example, an application can display the contents of a new file on the interface. Do not present a list of directories to the user and ask them what they want to do with the file.
To learn more about UIFileSharingEnabled
The key, you can refer to the Apple official Information Properties list document.
How iOS sets up app support file sharing (like a cool dog)