设置
我正在尝试使用UIDocumentPickerViewController
从文件应用中选择文件,但是我看不到Select
按钮在Picker中进行多个选择。为什么会发生这种情况?我做错了吗?谁能帮忙?
代码段:
NSArray *arrContents = @[@"public.content",@"public.item",@"public.composite-content",@"public.data",@"public.database",@"public.calendar-event",@"public.message",@"public.presentation",@"public.contact",@"public.archive",@"public.disk-image",@"public.text",@"public.plain-text",@"public.utf8-plain-text",@"public.utf16-external-plain-text",@"public.utf16-plain-text",@"com.apple.traditional-mac-plain-text",@"public.rtf"];
UIDocumentPickerViewController *dvc = [[UIDocumentPickerViewController
alloc]initWithDocumentTypes:arrContents inMode:UIDocumentPickerModeImport];
dvc.delegate = self;
[self presentViewController:dvc animated:true completion:nil];
初始化UIDocumentPickerViewController
。
dvc.allowsMultipleSelection = true;