Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Josh Lopez
Front End Web Development Techdegree Graduate 16,067 Pointsget properties of an image with swift
how do you implement https://developer.apple.com/…/Cla…/CIImage_Class/index.html…
I have this code:
func imagePickerController(picker: UIImagePickerController!, didFinishPickingMediaWithInfo info: NSDictionary!) {
self.dismissViewControllerAnimated(true, completion: nil);
println("Image Selected")
imageSelected = true
self.pickedImage.alpha = 1
let selectedImage = info[UIImagePickerControllerOriginalImage] as UIImage
let beginImage = CIImage(image:selectedImage)
let imageProperties = beginImage.properties()
self.pickedImage.image = selectedImage
println(imageProperties)
}
In the println(imageProperties) it gives back nil. I am trying to get the properties because it contains metadata. I then need to get the location metadata of the image.