admin管理员组文章数量:1130349
第三方应用调用系统文件app,并下载文件。
###配置如下
1:证书文件配置
在Identifiers下创建你的iCloud Containers配置,点击“+”创建
2:在Identifiers下选择你要添加icloud的boundid把icloud配置勾选上既可
3:打开工程中的配置如下
4:可选配置
在info.plist中添加如下两个配置
Supports opening documents in place
Application supports iTunes file sharing
结果都为YES
设置完以后,会在文件app中有一个和你工程名相同的文件夹出现。
5:打开文件app
- (void)presentDocumentCloud {
NSArray *documentTypes = @[@"public.content", @"public.text", @"public.source-code ", @"public.image", @"public.audiovisual-content", @"com.adobe.pdf", @"com.apple.keynote.key", @"com.microsoft.word.doc", @"com.microsoft.excel.xls", @"com.microsoft.powerpoint.ppt"];
UIDocumentPickerViewController *documentPickerViewController = [[UIDocumentPickerViewController alloc第三方应用调用系统文件app,并下载文件。
###配置如下
1:证书文件配置
在Identifiers下创建你的iCloud Containers配置,点击“+”创建
2:在Identifiers下选择你要添加icloud的boundid把icloud配置勾选上既可
3:打开工程中的配置如下
4:可选配置
在info.plist中添加如下两个配置
Supports opening documents in place
Application supports iTunes file sharing
结果都为YES
设置完以后,会在文件app中有一个和你工程名相同的文件夹出现。
5:打开文件app
- (void)presentDocumentCloud {
NSArray *documentTypes = @[@"public.content", @"public.text", @"public.source-code ", @"public.image", @"public.audiovisual-content", @"com.adobe.pdf", @"com.apple.keynote.key", @"com.microsoft.word.doc", @"com.microsoft.excel.xls", @"com.microsoft.powerpoint.ppt"];
UIDocumentPickerViewController *documentPickerViewController = [[UIDocumentPickerViewController alloc版权声明:本文标题:iOS调用文件app(file.app)选择文件和下载 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/jiaocheng/1754590866a2705264.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论