in my tab bar app where memory is getting low:
- (void)webViewDidFinishLoad:(UIWebView *)webView {
pageText = [NSString stringWithFormat:[webView stringByEvaluatingJavaScriptFromString:@"document.body.innerHTML"]];
The pageText line is causing a crash. If I comment out this line then there is no crash and I don't think it's the pageText NSString at fault.
I think this is on the final instance of the webViewDidFinishLoad and it looks like something is being released before webViewDidFinishLoad is done with it?
or there is no document.body.innerHTML for this webViewDidFinishLoad?
any ideas?
thanks in advance,
ade.