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 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 but I have read that he was supported by iCloud And Apple can reject that app. Therefore, I have changed to NSLibraryDirectory and everything is working fine. Is it OK to do this? There is no better way to store images like this. Thank you.

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.



Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -