汇出在IOS中使用iCloud导入文档 [英] Export & Import Documents using iCloud in IOS

查看:93
本文介绍了汇出在IOS中使用iCloud导入文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个应用程序,使用户可以使用iCloud Drive / iCloud Documents / iCloud Kit将核心数据记录导出到文档中,并且他可以在另一台设备上导入和访问这些文档。



我的意思是在使用相同应用程序的设备中导出/导入文档。可以通过导入的唯一文档名称来标识文档。



请针对上述任务提供任何建议。



1) iCloud文档。(文档存储)

1。 p>

2) iCloud Kit。(大量/复杂的数据量)



3) 键值存储。(少量数据)



我已成功使用iCloud文档实施了导出/导入。但是我只能访问在同一设备中导出的文档。因为它存储在本地存储中。 https://github.com/iRareMedia/iCloudDocumentSync rel = nofollow> https://github.com/iRareMedia/iCloudDocumentSync



现在,我指的是可在同一应用程序和内部访问的iCloud套件。多个设备..



谢谢..!

解决方案

我有使用以下代码在多个设备中使用相同的iCloud帐户成功访问了iCloud文件

  NSArray * tempArray = [[iCloud sharedCloud] listCloudFiles] ; 

来源 https://github.com/iRareMedia/iCloudDocumentSync



它将检索相同的所有iCloud文件已登录从各种设备导出的iCloud帐户。


I am developing an app that makes user to export core data records into an document using iCloud Drive/iCloud Documents/iCloud Kit and he can able to import and access those document at another device.

I mean Export/Import of documents within devices that are using same application. Documents can be identified by unique document name for importing..

Please Give any suggestions for above task. Which one is more useful..or suggest any other useful links for above task.

1) iCloud Documents. (Documents Storage)

2) iCloud Kit.(Huge/complex amount of data)

3) Key-Value Storage.(Small amount of data)

I have successfully implemented export/import using iCloud Documents. But I am able to access the documents which are exported in same device only. As it stores with local storage..

I used iCloudSync for retrieving the documents.

https://github.com/iRareMedia/iCloudDocumentSync

Now, I am referring iCloud Kit for accessing within same app & multiple devices..

Thanks..!

解决方案

I have successfully accessed the iCloud Files with same iCloud Account within multiple devices using below code

NSArray *tempArray=[[iCloud sharedCloud] listCloudFiles];

Source: https://github.com/iRareMedia/iCloudDocumentSync

It will retrieve all the iCloud files of same logged in iCloud Account that are exported from various devices..

这篇关于汇出在IOS中使用iCloud导入文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆