PDA

View Full Version : Caching Content on iPhone




Kennedy Kok
Jul 18, 2008, 10:27 AM
My iPhone application downloads content from the web. I want to cache some of this content so that it doesn't have to hit the web everytime.

How do I do that? Where would I store the files? I have read that there is the documents folder, how do I get to that? Is that the right place to store the files? Or is there a temporary folder?

Is there some code sample I can use?



iphonearticles
Jul 22, 2008, 08:36 PM
Hi Kennedy,

I have a tutorial where I talk about how to access data using SQL. It also talks a little about the documents directory. I store my SQL db in that location.

It might be helpful to you, and may help you in some new ideas.

Check it out here http://www.iphonesdkarticles.com/2008/07/iphone-sdk-tutorial-using-sql-lite-part.html

Thanks,
iPhone SDK Articles
http://www.iphonesdkarticles.com