Parallels Plesk Documentation
How to convert a UIImage into NSData
You can store a UIImage (or an NSImage on Mac) as raw data. This can be useful if you’d like to save this in Core Data. Here’s how you convert a UIImage into NSData: NSData *imageData = UIImagePNGRepresentation(yourImage); To convert NSData back to a UIImage, you can do this: UIImage *image = [[UIImage alloc]initWithData:yourData]; The […]