Where is the Photos directory?

Discussion in 'iOS Programming' started by pinsrw, Dec 2, 2010.

  1. pinsrw macrumors regular

    May 30, 2010
    Hi all,

    In my app I want to provide the user with an image file, as a permanent record of a transaction. Where do I deposit this image file?

    Also, where on the Web can I see the directory tree of the iPad/iPhone depicted? When I google this it's amazing how many gunk web pages come up that do not show me the directory tree.

  2. dejo Moderator


    Staff Member

    Sep 2, 2004
    The Centennial State
    You can either write to the Documents directory in the application's sandbox or you can store the image in the user's Saved Photos album (which I believe is the Photo app's Camera Roll).

    Have you read the "Files and the File System" section of the iOS Application Programming Guide yet?

    Also, check out UIKit's UIImageWriteToSavedPhotosAlbum function.

    Since you don't have access to (much of) anything outside your app's sandbox, there is no reason to be concerned with the directory tree of the device.

Share This Page