Swift iOS Cache WKWebView content for offline view

前端 未结 4 832
礼貌的吻别
礼貌的吻别 2020-12-08 03:34

We\'re trying to save the content (HTML) of WKWebView in a persistent storage (NSUserDefaults, CoreData or disk file). The user can see the same content when he re-enters th

4条回答
  •  情话喂你
    2020-12-08 04:00

    I would recommend investigating the feasibility of using App Cache, which is now supported in WKWebView as of iOS 10: https://stackoverflow.com/a/44333359/233602

提交回复
热议问题