我正在尝试在文档选择器中选择多个文件。这是我的代码:
let documentPicker = UIDocumentPickerViewController(documentTypes: [String(kUTTypeFolder)], in: .import)
documentPicker.delegate = self
self.present(documentPicker, animated: false) {
if #available(iOS 11.0, *) {
documentPicker.allowsMultipleSelection = true
}
}
但它一次只选择一个文件。谁能给我一个正确的方法?
任何帮助将不胜感激!