webViewDidFinishLoad: delegate of the
I would like an answer to this question as well. I can get it to work for the initial loading of the page by putting
webViewDidStartLoad. On refresh, however, it does not appear to work.
Edit: I found this work-around (similar to the suggestion in your question.) Not sure how robust it is. http://www.stevesaxon.me/posts/2011/window-external-notify-in-ios-uiwebview/