<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIDocumentPickerDelegate",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UIDocumentPickerDelegate"
  },
  "title" : "UIDocumentPickerDelegate"
}
-->

# UIDocumentPickerDelegate

A set of methods for tracking when the user selects a document or destination, or cancels the operation.

```
@MainActor protocol UIDocumentPickerDelegate : NSObjectProtocol
```

## Topics

### Responding to user actions

[`documentPicker(_:didPickDocumentsAt:)`](/documentation/UIKit/UIDocumentPickerDelegate/documentPicker(_:didPickDocumentsAt:))

Tells the delegate that the user has selected one or more documents.

[`documentPickerWasCancelled(_:)`](/documentation/UIKit/UIDocumentPickerDelegate/documentPickerWasCancelled(_:))

Tells the delegate that the user canceled the document picker.

[`documentPicker(_:didPickDocumentAt:)`](/documentation/UIKit/UIDocumentPickerDelegate/documentPicker(_:didPickDocumentAt:))

Tells the delegate that the user has selected a document or a destination.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)