Accessing iCloud Drive files from app
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to have iCloud support in my app where I can store and get PDF files. My question is "How to access iCloud drive file without using UIDocumentPickerViewController ". Actually I want to have custom files list in my app. I tried this code - (void) getAllFilesIniCloud { queryData = [[NSMetadataQuery alloc] init]; [queryData setSearchScopes:[NSArray arrayWithObject:NSMetadataQueryAccessibleUbiquitousExternalDocumentsScope]]; NSPredicate *pred = [NSPredicate predicateWithFormat: @"%K like '*.'", NSMetadataItemFSNameKey]; [queryData