I am working on a image-text mixture page on iOS. I know it is possible for me to use UIWebView to achieve the goal. But the problem is, user may need to read the page offline.
For the text part, I can save the html to the disk and load it in the offline mode.
But how about images? Is it possible to cache the images to the disk and the UIWebView can still be able to display them?
Thank you!
The ASIHTTPRequest project has a class called
ASIWebPageRequestwhich is designed to do exactly what you want. If you’re okay with adding an additional dependency to your project then I think it’s a good solution for you: ASIWebPageRequest.On the page I liked above there are some good examples of how to use it but I’ll include one of them here for completeness: