How to Set up app support for file sharing in IOS

Source: Internet
Author: User

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/DocumentsDirectory. 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:

  1. InInfo.plistFileUIFileSharingEnabledAnd set the key valueYES.

  2. Place the file you want to share inDocumentsDirectory.

  3. Once the device is inserted into your computer, iTunes 9.1 displays a file sharing area in the apps tab of the selected device.

  4. After that, you can add files to the directory or move the files to the desktop.

If the application supports file sharingDocumentsAfter 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 informationUIFileSharingEnabledFor more information, see the official information attribute list of apple.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.