Applications can use file sharing to allow users to access user data files of programs. File sharing allows applications to expose applications to users through iTunes/Documents
Directory. In this way, users can move files back and forth between iPad and desktop computers.
You can use the following steps to make the application support file sharing:
InInfo.plist
FileUIFileSharingEnabled
And set the key valueYES
.
Place the file you want to share inDocuments
Directory.
Once the device is inserted into your computer, iTunes 9.1 displays a file sharing area in the apps tab of the selected device.
After that, you can add files to the directory or move the files to the desktop.
If the application supports file sharingDocuments
After the directory, the application should be able to identify and make appropriate responses. For example, an application can display the content of a new file on the interface. Do not display the file list of the directory to users and ask them what operations they want to perform on the file.
For more informationUIFileSharingEnabled
For more information, see the official information attribute list of apple.