Html5 cache manifest in a UIWebView?

后端 未结 5 1254
自闭症患者
自闭症患者 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:29

    You could use the cachePolicy param on the NSURLRequest.

    request = [NSURLRequest requestWithURL:[NSURL URLWithString:reqString] cachePolicy:NSURLRequestReturnCacheDataDontLoad timeoutInterval: 10.0];
    

    documented here.

提交回复
热议问题