How to cache images downloaded from server for multiple tables in iOS

I really hope someone here has done their homework already and are willing to share a bit.

I need to cache images received from the server. Images should be displayed in tables. Right now every time I scroll through new images (re) received from the server. Also when I leave the table to go to another when I return all the images are loaded again. So basically I don't have a caching mechanism.

I am looking online for good libraries / projects. I find several libraries, but of course I don't know which ones are good and which are great. So, does anyone know which projects / libraries are suitable for caching images in iOS? I hope for reliability and ease of implementation.

Ease of use I mean, I hope you don't have to learn a bunch of things just to implement a library / project.

My app is currently targeting iOS7 and

+3


source to share


1 answer


You already know what you need. NSCache is what you are looking for.



But if you're looking for more help combining networks and images, you should check out AFNetworking . Very handy when working with a lot of images and network requests. (Hint: it's already implemented by NSCache)

+1


source







All Articles