How iOS sets up app support file sharing (like a cool dog)

Source: Internet
Author: User

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:

  1. Add a key to the application's Info.plist file UIFileSharingEnabled and set the key value to YES .

  2. Place the files you want to share in the application's Documents directory.

  3. 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.

  4. 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)

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.