2

In my application, I have an HTML string that's stored locally, that I load into a UIWebView for display.

This HTML string has references to images that are online. Does anyone know of a way to cache the images when loaded, so that when offline, the UIWebView can load with the images ?

I'm loading the UIWebView with "loadHTMLString" not "loadURLRequest"

Thanks

Uba Duba
  • 241
  • 2
  • 12
  • Try to look at this: http://stackoverflow.com/questions/16826820/uiwebview-webpage-caching-for-offline-viewing – Sergei Nikitin Apr 03 '14 at 16:22
  • Thanks, although my UIWebView is being loaded from a local string, not a URLRequest, I guess the question is, is there a way to load the string *into* a request ? – Uba Duba Apr 03 '14 at 18:23
  • There are some outer links. I hope, this can help you: http://robnapier.net/offline-uiwebview-nsurlprotocol/ – Sergei Nikitin Apr 04 '14 at 05:19

0 Answers0