@
@
@coder2014-09-25 17:24:07
iOS
@coder, 2014-09-25 17:24:07

How to store a large number of pictures in an iOS application?

Good afternoon, there is a problem with a rather approach - there is a certain catalog, it contains about 2000 pictures, all together if you stuff it in size ( standard, @2x, @3x ) it weighs a lot. How to approach the issue correctly?
Upload the entire database to the API and check it at the first start - and immediately download the latest version of the database along with pictures to fit the device? Or offer to download pictures separately?
How would you solve this question?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
s0L, 2014-09-25
_

Do not store pictures in the application, but load them as needed from the server. It's not UI as I understand it?

D
Denis Morozov, 2014-09-25
@morozovdenis

https://developer.apple.com/library/ios/Documentat...
in short, upload pictures to the cache directory (Library / Caches /) as needed and show them from there, but iOS can remove them from there if it has little space, so write so that you can redownload them. here is the correct way.

C
codeator, 2014-09-25
@codeator

Absolutely right, not UI The
measure of necessity does not seem very suitable to me in this case, since it will require a permanent connection to the Internet, but a very obvious solution.
The button - download all pictures - is probably not an option, or in the application settings make a checkbox something like - upload pictures as needed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question