Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 539
Mehul Mistri Avatar asked Oct 06 '12 06:10

Mehul Mistri


People also ask

Do CloudKit apps sync with iCloud users?

This is perhaps the most obvious use for CloudKit: syncing your users' data across their devices. Example: a note taking app where the user can create and read notes on any device associated with their iCloud account. Alternatives: Realm Mobile Platform, Firebase, iCloud KVS, iCloud Documents, custom web app.

Should you use Core Data?

The next time you need to store data, you should have a better idea of your options. Core Data is unnecessary for random pieces of unrelated data, but it's a perfect fit for a large, relational data set. The defaults system is ideal for small, random pieces of unrelated data, such as settings or the user's preferences.

What happens to CloudKit in Warriors?

CloudKit is Apple's remote data storage service. Based on iCloud, it provides a low-cost option to store and share app data using your users' iCloud accounts as a back-end storage service. There are two main components to CloudKit: A web dashboard to manage record types and any public data.


1 Answers

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]];
like image 194
Manu Avatar answered Oct 24 '22 07:10

Manu