iosdevnyc
iosdevnyc

Reputation: 1871

Caching UIWebview from local loaded files

I have a uiwebview which loads documents from local file system. Some of the images on these HTML files are 2 mb. I wanted to cache those images or the whole HTML.

What is the best way to accomplish or is this even something I should consider?

Thanks for all your help.

Upvotes: 0

Views: 336

Answers (1)

Paul Tiarks
Paul Tiarks

Reputation: 1921

It sounds like your best option would be to cache the large images and put them in the bundle at compile time. You could then change the URL's to those large images in your HTML to file URL's pointing to the files in the bundle.

Upvotes: 2

Related Questions