Reputation: 5380
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?
Upvotes: 0
Views: 579
Reputation: 179
This link would help you it will download it and next time it will take images from cache
Upvotes: 0
Reputation: 14886
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
.
Upvotes: 0
Reputation: 108101
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
.
Upvotes: 2