Slide 21
Slide 21 text
let container = CKContainer.defaultContainer()
let container = CKContainer(identifier: "iCloud.com.hello24.dotSwift")
let privateDatabase = container.privateCloudDatabase
let publicDatabase = container.publicCloudDatabase
cloudDatabase.saveRecord(record) { (savedRecord, error) -> Void in … }
cloudDatabase.deleteRecordWithID(recordID, completionHandler: { (deletedRecordID, error) -> Void in … })
cloudDatabase.performQuery(query, inZoneWithID: nil) { (records, error) -> Void in … }