它在iOS 8中正常工作,但在iOS 9中,它在选择文档文件时会被卡住,卡住的图像如下:

代码:
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];发布于 2016-02-25 15:48:44
我不知道这是否是iOS 9本身的问题,因为我们确实遵循了苹果文档中的指示,以及我们在网络上可以找到的结果。
只有在您在iCloud帐户中签名后不合并时,才会发生这种情况。
https://stackoverflow.com/questions/35340540
复制相似问题