Quote:
Originally Posted by jimmy
IF A FILE IS DOWNLOADED FROM THE NET WILL IT LAST ONLY FOR THE TIME THE APP IS ON …DOES THAT FILE GET DELETED AFTER THE APP is CLOSED….
|
It depends on where you download the file. The fact that a file is downloaded from the net has nothing to do with when it gets deleted.
The documents directory persists as long as the app lasts. The temp directory gets cleared when the user restarts his device (and might get cleared at other times - I'd have to look to be sure.)
If you want files to stick around indefinitely, save them to your documents directory.
See the article titled "Creating Paths and Locating Directories" the the XCode docs for more information.