UIWebView EXC_BAD_ACCESS crash

后端 未结 6 672
无人共我
无人共我 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

    View Will Disappear is an working option to the accepted answer:

    // ARC
    - (void)viewWillDisappear:(BOOL)animated{
        [self.webView setDelegate:nil];
        [self.webView stopLoading];
    }
    

    This works for iOS 6 perfectly.

提交回复
热议问题