---
title: About the Document Picker
framework: filemanagement
role: article
path: apple-archive/documentation/FileManagement/Conceptual/DocumentPickerProgrammingGuide/Introduction
---

# About the Document Picker

Explains how to use the document picker to provide access to files outside your app

## At a Glance

The document picker feature give users an unprecedented amount of freedom when it comes to accessing and sharing their documents.

### The Document Picker Enables Sharing Documents Between Apps

The document menu view controller displays a list of document providers available on the device. Each provider grants access to a container outside your app’s sandbox. For example, iCloud Drive lets users reach into the public iCloud container or into another app’s iCloud container and access the files stored there.

The document picker view controller lets your app *import* or *open* files from a particular document provider, uploading and downloading local copies as needed. Apps can also *export* or *move* their own documents into these external storage areas.

**Relevant Chapter:** [Accessing Documents](../AccessingDocuments/AccessingDocuments.html#//apple_ref/doc/uid/TP40014451-CH2-SW4)

### Sharing Documents Introduces Added Complexity that Your App Must Handle

Many of these sharing operations let users interact with their documents in radically new ways. As a result, users have greater flexibility when it comes to working with their documents. Because this flexibility also introduces additional complexity, your app needs to be able to handle these additional complications with grace and poise.

**Relevant Chapter:** [Creating an Outstanding User Experience](../CreatinganOutstandingUserExperience/CreatinganOutstandingUserExperience.html#//apple_ref/doc/uid/TP40014451-CH3-SW1)

### Enabling iCloud Drive Support Provides Access to Your Documents

If you want to let other apps access files stored in your iCloud container, you must enable iCloud Drive support. To learn how to do this, see [Enabling Document Storage in iCloud Drive](../../../../General/Conceptual/iCloudDesignGuide/Chapters/DesigningForDocumentsIniCloud.html#//apple_ref/doc/uid/TP40012094-CH2-SW20) .

## Prerequisites

Before your app can use the document picker, you must turn on the iCloud Documents capabilities in Xcode. For more information about iCloud Documents, see [Designing for Documents in iCloud](../../../../General/Conceptual/iCloudDesignGuide/Chapters/DesigningForDocumentsIniCloud.html#//apple_ref/doc/uid/TP40012094-CH2) .

*Import* and *export* operations simply make copies of existing files. They are relatively easy to use and require only standard app development skills: working with the file system, reading and writing documents, and presenting view controllers.

In contrast, *open* and *move* operations introduce a considerable amount of complexity. These operations allow you to access resources outside your app’s sandbox, and more than one process may attempt to read or write to these files concurrently. Before implementing one of these options, familiarize yourself with file coordinators, file presenters, and security-scoped URLs.

For more information about security-scoped URLs, see <!--a target="_self" -->Bookmarks, Security Scope, and Start/Stop Semantics<!--/a--> .

For more information about file coordinators and file presenters, see [The Role of File Coordinators and Presenters](../../FileSystemProgrammingGuide/FileCoordinators/FileCoordinators.html#//apple_ref/doc/uid/TP40010672-CH11) in *[File System Programming Guide](../../FileSystemProgrammingGuide/Introduction/Introduction.html#//apple_ref/doc/uid/TP40010672)*.

If you would like additional information on creating your own Document Provider extensions, see [Document Provider](../../../../General/Conceptual/ExtensibilityPG/FileProvider.html#//apple_ref/doc/uid/TP40014214-CH18) in *[App Extension Programming Guide](../../../../General/Conceptual/ExtensibilityPG/index.html#//apple_ref/doc/uid/TP40014214)*

[Next](../AccessingDocuments/AccessingDocuments.html)

Copyright © 2015 Apple Inc. All Rights Reserved. [Terms of Use](http://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](http://www.apple.com/privacy/) | Updated: 2015-03-09
