Reputation: 494
I need to download a few web pages for later usee in my application, and I can't find an easy way to accomplish this task. I would prefer a solution where I don't need to parse the HTML to get the URLs of the images and other resources, but rather download these somehow automatically.
Upvotes: 1
Views: 1805
Reputation: 494
OK guys, here is my solution:
After this, when I want to save something I set the cache's state to SAVING, and load a request to an UIWebView. After this I set the state back to LOADING, load a request to an UIWebView, and if I stored my request previously, my cache will load it from the disk.
Upvotes: 1
Reputation: 7079
I think ASIHTTPRequest framework can be useful for you - try ASIWebPageRequest and see if it supports all features you need.
Upvotes: 0