UIDocumentPickerViewController 中 select 多个文件缺少 "Select" 选项

Missing "Select" option to select multiple files in UIDocumentPickerViewController

有谁知道为什么在 UIDocumentPickerViewController 中点击 3 dots 时没有 Select 选项,就像在 Files app 中一样?即使 multipleSelection 设置为 true.
我注意到它出现在模拟器上,但没有出现在真实设备上。

private lazy var _documentPicker = UIDocumentPickerViewController(documentTypes: ["public.image",
         "public.audio",
         "public.movie",
         "public.text",
         "public.item",
         "public.content",
         "public.source-code"],
        in: .import)

private final func performDocumentsMenuOpen() {
        present(self._documentPicker, animated: true) {
            if #available(iOS 11.0, *) {
                self._documentPicker.allowsMultipleSelection = true
            } else {
                // Fallback on earlier versions
            }
        }
    }

修复
  • 在呈现 documentPicker
  • 之前移动 allowsMultipleSelection = true
  • present(self._documentPicker, animated: true)
  • 中将动画更改为 false