init(url:in:)
Initializes and returns a document menu to export or move the given document.
Declaration
init(url: URL, in mode: UIDocumentPickerMode)Parameters
- url:
The document to be exported or moved.
- mode:
The type of file-transfer operation that the document picker performs. This argument accepts only the UIDocumentPickerModeExportToService or UIDocumentPickerModeMoveToService mode.
Return Value
Returns an initialized UIDocumentMenuViewController object, or nil if the object could not be successfully initialized.
Discussion
The resulting document menu displays all the document pickers appropriate for the given mode.