在 iOS 9 中通过 UIDocumentMenuViewController 导入文档卡在加载中

Importing of documents via UIDocumentMenuViewController in iOS 9 stuck at loading

在iOS8中正常,在iOS9中选择文档文件卡住,卡住图片如下:

代码:

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

我不知道这是否是 iOS 9 本身的问题,因为我们确实遵循了苹果文档中的说明以及我们可以在网络上找到的结果。

只有当您登录 iCloud 帐户后没有合并时才会出现这种情况。