Need to Release UIWebView Delegate?

Posted by Chris on Stack Overflow See other posts from Stack Overflow or by Chris
Published on 2010-03-31T02:27:32Z Indexed on 2010/03/31 2:33 UTC
Read the original article Hit count: 484

Filed under:
|
|

I have a UIWebView named wView. I want to use webViewDidFinishLoad: in my class, so I am setting the class as the delegate for wView by using this line:

wView.delegate = self;

Everything loads properly, but when I close the UIWebView, the App crashes. If I comment out the wView.delegate = self, it works and does not crash, but then I can't use webViewDidFinishLoad: - any ideas? Do I need to release something?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uiwebview