objective c - IOS remove downloaded file in app -
i developed ipad app download different kind of files, after week or days downloaded files removed , app open file can find anymore.
could me, should save downloaded files in app avoid file came automatically deleted?. ios remove downloaded files after time?.
i read this apple documentation
i know maybe not complicated can't figure out why file removed if can me i'll appreciate that.
put data cache files in /library/caches directory. examples of files should put in directory include (but not limited to) database cache files , downloadable content, such used magazine, newspaper, , map apps. app should able gracefully handle situations cached data deleted system free disk space.
most using caches/temp directory system can clear contents of in case of low space. avoid deletion use documents directory.
if storing in documents directory, file can appear missing if storing hardcoded path , can change during app update. try storing relative path , log contents of documents directory see what files exist.
Comments
Post a Comment