使用wkwebview时,push后,再pop返回,报错

 

使用wkwebview时,push后,再pop返回,报错

Cannot form weak reference to instance (xxxx) of class xxxx. It is possible that this object was over-released, or is in the process of deallocation

原因是给webView.scrollView设置了代理:webView.scrollView.delegate = self ;

解决办法:

 

-(void)dealloc
{
    webView.scrollView.delegate = nil;
}
by:初光夫
posted @ 2019-10-31 17:28  WidgetBox  阅读(538)  评论(0编辑  收藏  举报