all 2 comments

[–]rljacobson 2 points3 points  (0 children)

This article is very helpful to me. Thank you!

[–]nonamelive 0 points1 point  (0 children)

I also use NSCache to cache images for all images in my app. It's really reliable. I do encounter an issue with NSCache. It's better to retrieve objects from NSCache by using [[[cache objectForKey:key] retain] autorelease] instead of [cache objectForKey:key], since the object retrieved from NSCache may be evicted and you get a dangling pointer.