I can create UIImage from NSData using [UIImage imageWithData:] or [UIImage initWithData:] methods.
UIImage
NSData
[UIImage imageWithData:]
[UIImage initWithData:]
I wonder i
Just because I stumbled upon this and i like swift :)
Here is the swift translation of Caroiline's post.
var imageData = UIImagePNGRepresentation(image)
Or
var imageData = UIImageJPEGRepresentation(image, 0.7)