Changes

Jump to: navigation, search

An iOS 8 CloudKit Example

9 bytes added, 16:48, 14 April 2015
no edit summary
<pre>
override func touchesBegan(touches: NSSetSet<NSObject>,
withEvent event: UIEvent) {
addressField.endEditing(true)
<pre>
func imagePickerController(picker: UIImagePickerController!, didFinishPickingMediaWithInfo info: [NSObject : AnyObject]!) {
self.dismissViewControllerAnimated(true, completion: nil)
let image =
info[UIImagePickerControllerOriginalImage] as ! UIImage
imageView.image = image
photoURL = saveImageToFile(image)
func imagePickerControllerDidCancel(picker:
UIImagePickerController!) {
self.dismissViewControllerAnimated(true, completion: nil)
}
if results.count > 0 {
var record = results[0] as ! CKRecord
self.currentRecord = record
self.commentsField.text =
record.objectForKey("comment") as ! String
let photo =
record.objectForKey("photo") as ! CKAsset
let image = UIImage(contentsOfFile:

Navigation menu