I have a UIWebView that loads a page hosted on a remote server. On document ready, it fires an asynchronous jQuery.ajax request to a server to populate a drop-down with a list of values returned from the server.
While it is loading the page and performing this request, I have a semi-transparent UIView and a UIActivityIndicator overlaying the UIWebView. I have implemented the webViewDidFinishLoad delegate method which removes the loading view.
- In iOS 4/5, this delegate method is executed after the async request finished. This is the behaviour I want.
- In iOS 6, this delegate method is executed before the async request finished and the loading view disappears too early.
Does anyone know if this is intentional. Any ideas how to resolve this problem?
Thanks!