Prerak Sola
Prerak Sola

Reputation: 10019

Select multiple files using DocumentPicker - iOS

As per the official guide, using DocumentPicker, currently I am able to select 1 file from the iOS device. How can I select multiple files using the same? Is it even possible?

Upvotes: 5

Views: 2034

Answers (2)

lacefarin
lacefarin

Reputation: 1234

Selecting multiple files using UIDocumentPickerViewController can be done with allowsMultipleSelection property, as shown below:

documentPicker.allowsMultipleSelection = true

Upvotes: 3

vjking9
vjking9

Reputation: 39

For that just set one counter,In which counter review the picker until you whant and each save previous file path to "shared preferences" by using that you can select multiple files.

Upvotes: 0

Related Questions