Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

sandhya.rai

macrumors newbie
Original poster
Jan 12, 2009
26
0
Hii,

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
 

kainjow

Moderator emeritus
Jun 15, 2000
7,958
7
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()
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.