views:

442

answers:

1

New to iPhone 3.2, Apple introduced File-Sharing support. Details can be found at https://developer.apple.com/iphone/library/releasenotes/General/WhatsNewIniPhoneOS/Articles/iPhoneOS3_2.html#//apple_ref/doc/uid/TP40009337-SW1 .

Now, most examples floating around in the web demonstrates writing to the documents directory. What if I want to write files from my app but I don't want the user to be able to see it via iTunes? I'm looking at the Files and Networking section of the iPhone OS Programming Guide and I'm unsure what would be a good alternative to the documents directory for writing files to hide from the user and not be rejected by Apple's review team.

A: 

If the data doesn't need to persist each launch you could use the Temps folder. Aptly named, it is a volatile (across launch) folder.

JoePasq
Maybe I should have made it a multi-part question. The temps folder makes sense for non persisting across launch.What If I do want it to persist across launch?
strider2k
If you want to persist: and backup: use Documentsif you don't want to backup: use Library/CachesAs perscribed in the docs linked to.
JoePasq