Instance Method

initWithURL:inMode:

Initializes and returns a document menu to export or move the given document.

Declaration

- (instancetype)initWithURL:(NSURL *)url inMode:(UIDocumentPickerMode)mode;

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.

See Also

Creating a document Menu

- initWithDocumentTypes:inMode:

Initializes and returns a document menu to import or open the given file types.

Deprecated