Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

16. Documents and Data Sharing > Recipe: Enabling Document File Sharing

Recipe: Enabling Document File Sharing

iOS documents aren’t trapped in their sandbox. You can and should share them with your users. Offer users direct control over their documents and access to any material they may have created on-device. A simple Info.plist setting allows iTunes to display the contents of a user’s Documents folder and lets those users add and remove material on demand.

To enable file sharing, add a UIFileSharingEnabled key to the application’s Info.plist and set its value to YES, as shown in Figure 16-2. When working with non-raw keys and values, this item is called “Application supports iTunes file sharing.” iTunes lists all applications that declare file sharing support in each device’s Apps tab, as shown in Figure 16-3.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial