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

pinsrw

macrumors regular
Original poster
May 30, 2010
194
0
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.

Thanks.
 
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?
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.

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.
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.