WKWebView: Is it possible to preload multiple URLs?

前端 未结 4 635
梦谈多话
梦谈多话 2021-01-15 03:45

Just migrated an app over to WKWebView and was wondering if there is any possible way to \'preload\' multiple URLs, but only display one at a time?

I ha

4条回答
  •  野的像风
    2021-01-15 04:42

    I ended up just using NSURLCache and preloading all URLs using NSURLRequest and NSURLConnection. Then whenever I load a url into WKWebView it uses the cached requests per my cache policy.

提交回复
热议问题