My iPhone app has a built in RSS reader. There are images and I’d like to find a way to cache them on the system but have the system manage the caching and eventual clean up.
Is there a way of doing this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Three20 does decent image caching. You don’t need the rest of it, just look at TTImageView which is a drop-in replacement for UIImageView. You just do
And TTImageView handles the rest, including caching on disk etc.
I only have two minor problems with this approach myself:
TTImageView has some other nice properties that I don’t have to waste my time on, e.g there is a placeholder image that you can ship with your app that is shown until the real image loads from network, etc.