Instance Property

directoryURL

The initial directory displayed by the document picker.

Declaration

@property(nonatomic, copy) NSURL *directoryURL;

Discussion

Set this property to specify the starting directory for the document picker. This property defaults to nil. If you specify a value, the document picker tries to start at the specified directory. Otherwise, it starts with the last directory chosen by the user.

directoryURL only returns a value when you explicitly set it. For example, it does not calculate the default URL presented to the user when the property is not set.

See Also

Getting the User-Selected Document

delegate

An object that adheres to the UIDocumentPickerDelegate protocol.

UIDocumentPickerDelegate

A set of methods that you implement to track when the user selects a document or destination, or to track when the operation is canceled.

allowsMultipleSelection

A Boolean value that determines whether the user can select more than one document at a time.