iphone - iOS - Can saving to Library/Caches/ result in error? -
if app starts saving virtually unlimited images (on demand) /library/caches directory caching purpose, happen when storage full? will saving caches folder result in error? or if app open, can cache of open app purged ios automatically? if not, is responsibility of developer initiate purging process open app? or is guaranteed attempt save image /library/caches successful regardless of whether purging takes place or not? (cached images cleaned app on exit).
yes, may result in error. no, not purged ios automatically while app running. quote docs:
caches
on ios 5.0 , later, system may delete caches directory on rare occasions when system low on disk space. never occur while app running
so it's responsibility cleanup caches directory while running. meet error in rare cases since ios try remove caches of other apps not running.
Comments
Post a Comment