CloudKit Fetch a Record

In this lesson, you learn how to perform the CloudKit operation that fetch a record from the CloudKit’s public database and display it in a textView. Here is a QuickTime movie of the CloudKit operation in action. Your browser does not support the video element.  Code presented on this page assume you are using Xcode 6.4 […]

CloudKit Save a Record

In this lesson you learn how to save an item (with an image) in the default zone of the CloudKit’s public database. Here is a use case scenario of that task:  Code presented on this page assume you are using Xcode 6.4 and Swift version 1.2. So if you are using a newer version of Swift, it […]

CloudKit Subscription

In this tutorial you learn how to do the following: Create subscription with a notification Register for a push notification Fetch and display the new record in the mainView’s textView  Code presented on this page assume you are using Xcode 6.4 and Swift version 1.2. So if you are using a newer version of Swift, it […]

CloudKit Record Zone

When you use the CloudKit Dashboard or Swift code to add records in the CloudKit private or public database, CloudKit put them in the private database’s Default Zone or the public database’s Default Zone. Private database’s Default Zone Public database’s Default Zone Now, a zone is like a table in the CloudKit database and it act like a silo […]

CloudKit Discoverability

Discoverability is a CloudKit feature that lets you: Fetch the user’s First Name and Last Name from their iCloud account. Fetch the user’s friends First Name and Last name from the user’s address book.  Code presented on this page assume you are using Xcode 6.4 and Swift version 1.2. So if you are using a newer […]