Search code examples
iphoneiosobjective-cuiwebviewuiwebviewdelegate

ios - UIWebView DidFinishLoad not being called


I have a UIWebView that works ok. The delegate is working. When I open a URL, events shouldStartLoadWithRequest and webViewDidFinishLoad are fired.

But when for example I click on a Google search result, only shouldStartLoadWithRequest is fired, and webViewDidFinishLoad is never called.

This is causing problems because if I put a "loading..." indicator on shouldStartLoadWithRequest, in these cases the indicator still remains even after the page is correctly loaded.

Any idea why this is happening?


Solution

  • Not an expert on Google API, but as I suspected this might be your reason.