Changes

Jump to: navigation, search

An iOS 8 CloudKit Subscription Example

30 bytes added, 16:51, 14 April 2015
no edit summary
let viewController: ViewController =
self.window?.rootViewController as ! ViewController
let notification: CKNotification =
let queryNotification =
notification as ! CKQueryNotification
let recordID = queryNotification.recordID
self.currentRecord = record
self.addressField.text =
record.objectForKey("address") as ! String
self.commentsField.text =
record.objectForKey("comment") as ! String
let photo =
record.objectForKey("photo") as ! CKAsset
let image = UIImage(contentsOfFile:
if let notification = remoteNotification {
self.application(application,
didReceiveRemoteNotification: notificationas [NSObject : AnyObject])
}
}
 
return true
}

Navigation menu