WKWebview memory leak on iOS 8.4 . It can be detected using tools (leaks). When we check the stack trace , it indicates the initialization of WKWebView.
webView = [[WKWebView alloc] initWithFrame:_displayView.frame];
If we drill down, we can understand that the UIWebSelectionAssistant and _UIKeyboardTextSelectionGestureController stand out, but have never been released.
Since they are called internally by WKWebView, I don't know how to release them. Although I use ARC, but still I wrote them in the dealloc method:
[webView stopLoading]
webView.navigationDelegate = nil;
[webView removeFromSuperview]
webView = nil;
However, I still cannot escape the leaks. More details can be found in the attached screenshot. Link to leak screenshot
Thank!