WGEditor-mobile icon indicating copy to clipboard operation
WGEditor-mobile copied to clipboard

webView初始化加载很慢

Open teaold opened this issue 6 years ago • 1 comments

由于iOS的webView初始化加载很渲染很慢,相比安卓有点low, 建议提前创建一个单例预初始一个webView,而不是临时初始化:

比如:

  • (UIWebView *)webView{ if (!_webView) { //获取已经初始化完成的webView _webView = [WGUIWebViewPool sharedInstance].webView; ... }

teaold avatar Jan 21 '19 09:01 teaold

嗯,看个人选择吧,这样会有额外的内存消耗

study123456 avatar Mar 13 '19 06:03 study123456