UIDocumentPickerViewController problem

I quickly and repeatedly clicked the undownloaded file from the GoogleDrive or OneDrive in UIDocumentPickerViewController, then opened UIDocumentPickerViewController again, and found that the file could not be selected, the console did not print any informations, and did not call the delegate method. Only restart the device to select the file normally.

let doc = UIDocumentPickerViewController(documentTypes:  allowedDocumentTypes, in: .import)
doc.allowsMultipleSelection = false
doc.delegate = self
present(doc, animated: true, completion: nil)
  • Is this a bug of UIDocumentPickerViewController?

Add a Comment