UIDocumentPickerViewController - While selecting multiple files tapping the Open button is unresponsive

Originator:steve
Number:rdar://33402702 Date Originated:07/19/2017
Status:Open Resolved:
Product:iOS Product Version:iOS 11 beta 3
Classification:Bug Reproducible:Always
 
Area:
UIKit

Summary:
Selecting multiple files in the UIDocumentPickerViewController does not work properly unless the folder is one that is initially shown when the picker is presented.

If you try and navigate into a folder and then tap Select and choose multiple files the `Open` button in the navigation bar no longer seems to work. Tapping the open button doesn't trigger the didPickDocumentsAt delegate method or dismiss the picker.

Steps to Reproduce:
- Make sure you're logged into iCloud on the simulator or device.
- Build and launch sample app (or create your own where you display a UIDocumentPickerViewController with allowsMultipleSelection set to true)
- Navigate into a folder that is not initially shown in the UIDocumentPickerViewController
- Tap `Select` in the nav bar and select a few files
- Try and tap the `Open` button.

Expected Results:
The `didPickDocumentsAt` delegate method receives a list of select URLs and the UIDocumentPickerViewController dismisses.

Observed Results:
The `didPickDocumentsAt` delegate method does not get called and the UIDocumentPickerViewController does not dismiss.

Version:
iOS 11 beta 3

Notes:
If you navigate into the folder then dismiss the UIDocumentPickerViewController, then the next time you open a UIDocumentPickerViewController it will be in that folder and selecting multiple files will work as expected.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!