Reputation: 4202
I'm having a problem regarding app folders being disabled when I'm trying to import from iCloud, see the image below:
I checked google drive's iCloud import and it's not disabled like in the image below:
I need to get documents from other app's folder, what did I do wrong?
This is my current setup in my info.plist:
Code:
UIDocumentPickerViewController *documentPicker = [[UIDocumentPickerViewController alloc] initWithDocumentTypes:@[@"public.item"]
inMode:UIDocumentPickerModeImport];
documentPicker.delegate = self;
documentPicker.modalPresentationStyle = UIModalPresentationFormSheet;
[self presentViewController:documentPicker animated:YES completion:nil];
Upvotes: 2
Views: 1360
Reputation: 3202
You need to add the Utils in UIDocumentPickerViewController
UIDocumentPickerViewController *picker=[[UIDocumentPickerViewController alloc]
initWithDocumentTypes: @[(__bridge NSString *) kUTTypeContent,
(__bridge NSString *) kUTTypeData,
(__bridge NSString *) kUTTypePackage,
(__bridge NSString *) kUTTypeDiskImage,
@"com.apple.iwork.pages.pages",
@"com.apple.iwork.numbers.numbers",
@"com.apple.iwork.keynote.key"] inMode:UIDocumentPickerModeImport];
Upvotes: 1