Created
February 29, 2016 20:22
-
-
Save MarcusSmith/49c82054f4d70152f3ad to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if let asset = record["myImageKey"] as? CKAsset, | |
data = NSData(contentsOfURL: asset.fileURL), | |
image = UIImage(data: data) | |
{ | |
// Do something with the image | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment