3

I'm trying to pick file from Files App using UIDocumentPickerViewController but I can't see Select button for multiple selection in picker. Why this is happening? am i doing anything wrong? Can anyone help?

Code snippet :

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];
rmaddy
  • 314,917
  • 42
  • 532
  • 579
Dev
  • 41
  • 5

1 Answers1

2

set dvc.allowsMultipleSelection = true; after initialising UIDocumentPickerViewController.

Anand Kore
  • 1,300
  • 1
  • 15
  • 33