WkWebView won't loadHTMLstring

前端 未结 2 705
误落风尘
误落风尘 2020-12-15 23:09

I\'m trying to show in a WkWebView an html page that I previously downloaded and stored in a String.

This is how I setup my WkWebView:

    webView =          


        
2条回答
  •  没有蜡笔的小新
    2020-12-15 23:30

    I met the same problem as you! The key problem is in the project settings:

    Check your Xcode Project > Target > Capabilities > App Sandbox.

    Make sure you've CHECKED the NetWork ✅ Incoming & ✅ Outgoing connections.

    See the SreenShot Below:

提交回复
热议问题