UIWebView EXC_BAD_ACCESS crash

后端 未结 6 677
无人共我
无人共我 2020-12-13 00:49

I\'m experiencing crashes of an app that uses UIWebView. Usually it\'s when page is not fully loaded and UIWebView is sent stopLoading selector. Or when UIWebView fully load

6条回答
  •  感动是毒
    2020-12-13 01:26

    Try turning on NSZombie and see if something is being released too soon.

    It may be that you are canceling the loading of the view and then immediately tearing down your view hierarchy, causing something to be released before the UIWebView is done messing with it.

    In this case, the backtrace looks distinctly like it is a delegate that is being released early. Delegate relationships are typically weak and, lacking GC, are a wonderful source for dangling references that causes crashes that look just like this.

提交回复
热议问题