Question

I've been using ASIHttpRequest library for a while for downloading images and storing them for cache. Since it is deprecated already I'm looking for a replacement library.

My needs are to download a new image and to store it for cache only and only if image has changed on server. Otherwise to use cached image.

Is there a good and lite alternative to beloved ASIHttpRequest?

Was it helpful?

Solution

Sure there is: AFNetworking

AFNetworking is de-facto the natural replacement of ASIHTTP. It's a lovely library and version 2.0 has just being launched.

Another great library is surely SDWebImage, which provides a lot of useful functionalities for downloading and caching images.

You are clearly free to use both in your project. I personally use AFNetworking for any network operation a part from images, for which I use SDWebImage.

OTHER TIPS

If you're just looking for a library to handle image downloads and caching, I recommend SDWebImage.

It includes a category class on UIImageView as well as SDWebImageManager if you're just looking to download images and not immediately place them in a UIImageView.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top