【问题标题】:Importing of documents via UIDocumentMenuViewController in iOS 9 stuck at loading在 iOS 9 中通过 UIDocumentMenuViewController 导入文档时卡住了加载
【发布时间】:2016-02-11 13:23:53
【问题描述】:

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

【问题讨论】:

标签: ios objective-c iphone uidocumentmenuvc


【解决方案1】:

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

只有在您登录 iCloud 帐户后未合并时才会发生这种情况。

【讨论】:

    猜你喜欢
    • 2023-03-11
    • 2019-03-27
    • 2019-01-14
    • 2023-04-10
    • 2014-11-06
    • 1970-01-01
    • 1970-01-01
    • 2021-12-31
    • 1970-01-01
    相关资源
    最近更新 更多