Importing of documents via UIDocumentMenuViewController in iOS 9 stuck at loading

783 views Asked by At

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];
1

There are 1 answers

0
Bryan P On BEST ANSWER

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.