O'Reilly logo

Learning Core Data for iOS with Swift: A Hands-On Guide to Building Core Data Applications, Second Edition by Tim Roadley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

16. CloudKit Sync: Downloading Changes and Handling Deletions

Information is not knowledge.

Albert Einstein

In Chapter 15, “CloudKit Sync: Uploading Objects,” the capability to upload Core Data managed objects into iCloud using CloudKit was added. This chapter completes the circle as the capability to download changed CloudKit records is added. Support for handling deleted objects is implemented too.

CloudKit Building Blocks (Continued)

Similar to the previous chapter, there are several disparate functions intended for CDCloudSync.swift that won’t be brought together until the end of the chapter. To begin with, four base functions are added to the existing GENERAL section. The first function, fetchRecordWithCacheID, is shown in Listing 16.1 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required