View Full Version : How to save an image in application sandbox

Apr 14, 2009, 05:50 AM

I want to know how to edit and save the particular image from photo gallery to application sandbox and how to read the images too.
I got stuck at this point

thanks in advance

Apr 14, 2009, 04:24 PM
Look at UIImageJPEGRepresentation() and UIImagePNGRepresentation()

and then once you have the NSData, you can writeToFile:atomically:

To get the path to where you can save it, use NSSearchPathForDirectoriesInDomains()