5

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?

2 Answers 2

4

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

documentPicker.allowsMultipleSelection = true
Sign up to request clarification or add additional context in comments.

Comments

0

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.

1 Comment

I will not know, how much files user wants to select and even if I ask the user to input it, I will have to launch the picker multiple times. That's not a good design practice.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.