34,333
edits
Changes
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
}