where to save images in iOS app -
My app user will have a list of items, each item will have a thumbnail, thumbnails will be downloaded from the net, so I I want to save images in the app directory, so that the app does not download the thumbnails every time, I am now saving images in the Here's everything about: I like to store the thumbnails in the temporary directory which the system automatically gets cleaned I also wrote a class that is responsible for the cache files in the directory you set. NSLibraryDirectory , and there are several directories available, such as
NSDocumentDirectory, NSApplicationSupportDirectory. . those images will be downloaded, if They do not exist in NSLibraryDirectory. My question is, what directory is the right place to save these thumbnails images so that the user did not download the image every time before I used the code
NSLibraryDirectory and everything is working fine. Is it OK to do this? There is no better way to store images like this. Thank you.
Comments
Post a Comment