You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it seams that this method :
[bridge setWebViewDelegate:(id)webViewDelegate] will cause circular reference in swift 3.0 project 。I pass a self(UIViewController) to this method, finally this controller didn't call "deinit" when I popViewController
The text was updated successfully, but these errors were encountered:
In the WebViewJavascriptBridge source code ,it make the webViewDelegate as strong referance :
__strong typeof(_webViewDelegate) strongDelegate = _webViewDelegate;
Thus we must cut off the reference cycle manually:
//set up the delegate
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
self.bridge.setWebViewDelegate(self)
}
it seams that this method :
[bridge setWebViewDelegate:(id)webViewDelegate] will cause circular reference in swift 3.0 project 。I pass a self(UIViewController) to this method, finally this controller didn't call "deinit" when I popViewController
The text was updated successfully, but these errors were encountered: