concept CloudKit in category ios

appears as: CloudKit, CloudKit
iOS Development with Swift

This is an excerpt from Manning's book iOS Development with Swift.

  • You’ll need to import CloudKit, because CKRecord comes from the CloudKit framework.
    import CloudKit
    To identify a record type, it needs a name.
  • 12.3. Storing data using CloudKit

    CloudKit is a service provided by Apple for storing data as records in a database in iCloud, ready to be accessed by your app from different devices.

    Unlike the ubiquitous key-value store, CloudKit doesn’t perform any local storage. It’s up to you to determine whether your app requires an internet connection to access CloudKit data, or whether you want to maintain local storage in addition to CloudKit, and manage synchronization of the two. To keep things as simple as possible, in this section we’ll explore storage of data in iCloud using CloudKit without any local storage.

    The same way the file system for your app on the device is sandboxed, your app has a sandboxed area in iCloud, called a container. When you activate iCloud for your app, Apple automatically creates a container for it, ready to store data using CloudKit.

    sitemap

    Unable to load book!

    The book could not be loaded.

    (try again in a couple of minutes)

    manning.com homepage
    test yourself with a liveTest