Nic Hubbard
Nic Hubbard

Reputation: 42139

UIImageView+AFNetworking get UIImage for URL

I am using UIImageView+AFNetworking and am wondering if there is a way to get the UIImage from the cache? It seems like there should be a method to return the UIImage based on the URL.

Possible?

Upvotes: 0

Views: 663

Answers (2)

Krivoblotsky
Krivoblotsky

Reputation: 1502

There is great AFNetworking alternative called APSmartStorage. It supports downloading, memory and disk cache.

Upvotes: 0

Michael Dautermann
Michael Dautermann

Reputation: 89509

AFNetworking already caches images automatically (and doesn't expose the cache publicly). You should just be able to request from a URL and it'll either come from the cache or it will get cached when it's downloaded from the remote website.

Upvotes: 1

Related Questions