Search code examples
iphoneobjective-cipadcore-dataicloud

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..

And storing all images in document directory.. There are two buttons called Synch On iCloud and **Restore Backup** on Settings page..

On Synch On iCloud Button, All that core data and images should go on 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..

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..

Please help me solve this issue..

Thanks,
Mehul.


Solution

  • 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

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