1. Welcome to the new MacRumors forums. See our announcement and read our FAQ

How to save an image in application sandbox

Discussion in 'iPhone/iPad Programming' started by sandhya.rai, Apr 14, 2009.

  1. macrumors newbie

    #1
    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
     
  2. Moderator emeritus

    kainjow

    #2
    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()
     

Share This Page