iCloud in your iOS Apps – Part 4: iCloud and Core Data

In this part we’ll talk about how to make your Core Data powered app work with iCloud. This involves adding an option to your persistent store coordinator which will allow Core Data to write log files to iCloud. When changes are detected, the local Core Data store can merge them using those log files.

Here are the iCloud methods I added to the MasterViewController. First the observers under viewDidLoad:

And here are the event handler methods:

Demo Project

Here’s the demo project that I’m building. Don’t forget to change the Bundle ID and your Team ID to make it work on your devices:

Enjoy creating some rad iCloud apps 😉

Further Reading

Watch the whole series

Enjoy!

Watch the full course in one convenient playlist:
Catch this episode on my iOS Dev Diary Podcast:

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.