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?