Html5 cache manifest in a UIWebView?

后端 未结 5 1271
自闭症患者
自闭症患者 2020-12-02 06:43

I\'d like to be able to use the html5 cache manifest to store images locally on an iPhone that is visiting the page via a UIWebView within an app.

I\'ve

5条回答
  •  情书的邮戳
    2020-12-02 07:27

    UIWebView's cannot (or will not) use the HTML5 appcache. They just don't. Maybe in iPhone OS 4.0.

    But what you can do is fetch all the files yourself with network calls (or just have them in your app bundle) and load up the webview with a local URL pointing to your local HTML file, which can have relative URLs to local assets.

    There is no super simple "it just works" way to make this happen, however.

提交回复
热议问题