I am using SDWebImage to get pictures.
let's say I have two view controllers A and B. B is the next view of A. they need to show the same image:
[iconIamgeView setImageWithURL:[NSURL URLWithString:@"http://www.example.com/icon.jpg"];
I thought SDWebImage would cache http://www.example.com/icon.jpg
after this code in A, so B was going to use the cache. Thus there should not be a detectable latency when I used this code to show the same image in B. However, it seems that I was wrong. there was an obvious latency when I wanted to show this image in B.
How can I use the cache properly? thanks!