0

It works properly in iOS 8, but in iOS 9 it gets stuck when selecting a document file, the image of being stuck is below:

enter image description here

Code:

UIDocumentMenuViewController *importMenu = [[UIDocumentMenuViewController alloc] initWithDocumentTypes:@[@"public.item", (__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];
importMenu.delegate = self;
[self presentViewController:importMenu animated:YES completion:nil];
Bryan P
  • 4,142
  • 5
  • 41
  • 60
  • http://stackoverflow.com/questions/29300772/my-app-is-getting-crashed-on-uidocumentpickerviewcontroller/29889034#29889034 – Sanju Feb 11 '16 at 13:50
  • Can't use uidocumentpickerviewcontroller, it doesn't have an option to add new items aside from the cloud storages, the code above are shortened. – Bryan P Feb 11 '16 at 17:35

1 Answers1

0

I don't know if this is an issue with iOS 9 itself because we definitely followed what was instructed in the apple documentation and also in what results we can find in the web.

This only happens when you don't merge after you signed in your iCloud account.

Bryan P
  • 4,142
  • 5
  • 41
  • 60