简体   繁体   English

将核心数据和图像共享到iCloud

[英]Sharing Core data and Images to iCloud

I had created Entity called **Information** in Coredata model and there are three attributes in this entity as name,email and imagename respectively.. 我在Coredata模型中创建了名为**Information** Entity,该实体中有三个属性分别为name,email和imagename。

And storing all images in document directory .. There are two buttons called Synch On iCloud and **Restore Backup** on Settings page.. 并将所有图像存储在文档目录中 。在Settings页面上有两个名为Synch On iCloud**Restore Backup**按钮。

On Synch On iCloud Button, All that core data and images should go on iCloud.. Synch On iCloud按钮上,所有核心数据和图像都应该在iCloud上进行。

How to synch all that.. I had spent 2 days research work but can't got success.. and doesn't got any guidelines for that also.. 如何同步所有..我花了2天的研究工作,但无法取得成功..并没有得到任何指导也..

And from other device When I click on Restore Backup , the coredata model filled with that data that I stored on iCloud and all images also.. 从其他设备当我点击Restore Backupcoredata模型填充了我存储在iCloud上的数据以及所有图像。

Please help me solve this issue.. 请帮我解决这个问题..

Thanks, 谢谢,
Mehul. MEHUL。

Just go to this link 只需转到此链接

and download the code from it. 并从中下载代码。 It will help you. 它会对你有所帮助。 You need to set the profile entitlements and you need to set the code identity for that should be perfect according to the profile entitlements 您需要设置配置文件权利,并且您需要根据配置文件权利设置代码标识

and After downloading change this 下载后更改此内容

In MTICloudImagesController.m file look at this statement this xib file is not declared properly MTICloudImagesController.m文件中查看此语句,此xib文件未正确声明

 MTICloudFileOpenViewController* openFile = [[MTICloudFileOpenViewController alloc] initWithNibName:@"MTICloudFileOpenViewController" bundle:[NSBundle mainBundle]];

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM