我正在尝试使用
代码片段:
UIDocumentPickerViewController
从文件应用程序一次导入/挑选多个文件。尝试设置allowsMultipleSelection = true
,但在呈现选择器时仍然没有"选择"选项。代码片段:
UIDocumentPickerViewController *dvc = [[UIDocumentPickerViewController alloc]initWithDocumentTypes:arrContents inMode:UIDocumentPickerModeImport];
dvc.delegate = self;
dvc.allowsMultipleSelection = true;
[self presentViewController:dvc animated:true completion:nil];
documentPicker:didPickDocumentsAtURLs:
而不是documentPicker:didPickDocumentAtURL:
。 - Chintan Shah