iOS UIWebView 加载一个url可以正常显示table里的图片,WKWebView经常出现无法显示图片,偶尔又可以显示
WKWebViewConfiguration* config = [[WKWebViewConfiguration alloc] init];;
_webView = [[WKWebView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height) configuration:config];
_webView.navigationDelegate = self;
_webView.UIDelegate = self;
//开了支持滑动返回
_webView.allowsBackForwardNavigationGestures = YES;
[self.view addSubview:_webView];