UIWebView random crash at [UIViewAnimationState release]: message sent to deallocated instance

前端 未结 8 1093
Happy的楠姐
Happy的楠姐 2020-12-04 16:24

I\'m having a random UIWebView crash using iOS8.1 and UIWebView, using an iPhone5. In my tests the crash doesn\'t

8条回答
  •  余生分开走
    2020-12-04 16:32

    make sure you set the UIWebView delegate to nil in the dealloc method

    - (void)dealloc {
      [self.webView stopLoading];
       self.webView.delegate = nil;
    }
    

提交回复
热议问题