Missing Edit button for Access/Disable another cloud drives

UIDocumentPickerViewController *documentPicker = [[UIDocumentPickerViewController alloc] initWithDocumentTypes:types inMode:UIDocumentPickerModeImport];
documentPicker.delegate = self;
//documentPicker.editButtonItem.enabled = true;
//documentPicker.modalPresentationStyle =UIModalPresentationFormSheet;
[self presentViewController:documentPicker animated:YES completion:nil];

Can anyone suggest to me how to enable an Edit button on the top right side and do an Enable/Disable for other drives such as: (Dropbox, Google Drive, iCloud) from a list?(Those drives are already installed in my device).

Also how could I access only Excel and Google sheets files from drives? Thank you in advance.

1

There are 1 best solutions below

5
On BEST ANSWER

Adding an edit button is not possible. Please file a bug if you need it. The user can edit the list in the Files app and this will be reflected in your picker.

For the second question, you can set the UTIs of the files the user can select in the initializer of the picker (your « types@ argument)