What is the best way to persist thousands of images on an iOS application?

521 views Asked by At

I am building an iOS app and I would like to persist images. The images I persist have the potential to be in the thousands? I have read online that a common solution is to use the Documents/ directory.

Is storing in the Documents/ directory a good approach even if the size of the images and number of images can be quite large (order of thousands think between 1,000 - 5,000)? What about NSArchiver, it has the advantage of probably storing the image data in a more compact format. I do not want the overhead of DB/model management framework like Core Data, it is pretty overkill for my use case.

0

There are 0 answers