HTML5   发布时间:2022-04-27  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了iOS:WebKitLegacy崩溃大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
在一些相对安全(对我来说)修改后,应用程序开始崩溃一些WebKitLegacy的东西.我在Fabric中看到很多崩溃,但找不到稳定的重现步骤.
有谁知道什么会导致这些崩溃?请参阅附图.

一些应用程序屏幕使用UIWebView显示内容 – 我认为问题出在那里.


解决方法

UIWebView EXC_BAD_Address …应用程序接收到的信号
首先,您应该虑webView.delegate = nil.
但是哪里 ??

我的经验:

- (void)dealloc{
    /*
     Important
     Before releasing an instance of UIWebView for which you have set a delegate,you must first set the UIWebView delegate property to nil before disposing of the UIWebView instance. 
     This can be done,for example,in the dealloc method where you dispose of the UIWebView.
     */
    if (_webView.loading) {
        [self.webView stopLoading];
    }
    _webView.delegate = nil;
}

其他优秀的链接
ios:EXC_BAD_ACCESS for Webview delegate

大佬总结

以上是大佬教程为你收集整理的iOS:WebKitLegacy崩溃全部内容,希望文章能够帮你解决iOS:WebKitLegacy崩溃所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签:ios崩溃