我是靠谱客的博主 懵懂大碗,这篇文章主要介绍wkwebview报的问题 Could not signal service com.apple.WebKit.WebContent添加configuration,现在分享给大家,希望可以做个参考。

webView = WKWebView.init(frame: bgView.frame) 报错

修改:

webView = WKWebView.init(frame: bgView.frame, configuration: WebConfiguration.shared)

 

class WebConfiguration: WKWebViewConfiguration {

    

    public static let shared = WebConfiguration()

    

    private override init() {

        super.init()

        self.processPool = WKProcessPool.init()

        self.userContentController = WKUserContentController.init()

    }

    

    internal required init?(coder aDecoder: NSCoder) {

        fatalError("init(coder:) has not been implemented")

    }

}

最后

以上就是懵懂大碗最近收集整理的关于wkwebview报的问题 Could not signal service com.apple.WebKit.WebContent添加configuration的全部内容,更多相关wkwebview报的问题内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(140)

评论列表共有 0 条评论

立即
投稿
返回
顶部