If there is Javascript on the page, you may need to wait for it to complete. The easiest way is to send some javascript to the page to be executed:
-(void) webViewDidFinishLoad:(UIWebView *)webView { NSString *javaScript = @"<script type=\"text/javascript\">function myFunction(){return 1+1;}</script>"; [webView stringByEvaluatingJavaScriptFromString:javaScript]; // done here }
Having said that, I seem to still see cases where the webview is not completely updated in webViewDidFinishLoad.
Eric Shapiro Apr 14 '10 at 16:19 2010-04-14 16:19
source share