I have a tableview, that contain an image for each cell. Since there will be quite a lot of cell, is it possible to package all the images needed, and retrive them with one request, or do you have to request each and every image separate? Trying to reduce the stress for on server. Or is this the normal way to do it?
Thanks in advance
I think you should just load the images asynchronously, more than dealing with such an optimization. As you ask, yes, this is the normal way to do that, unless your server has really huge traffic (huge = google.com, facebook.com, etc.).
I use the SDWebImage open source library and it works really well, making it transparent to you. After importing it, for each cell, you should do:
and it will try to load (and cache) dynamically each image, placing a placeholder image while it’s loading.
I use it in a table with 100+ rows and it works like a charm.
Hope this helps!