I have a UIWebView
and one page has an AJAX component whose content changes when the user clicks a button. How can I know when the content has loaded inside the UIWebView
?
相关问题
- Carriage Return (ASCII chr 13) is missing from tex
- Using :remote => true with hover event
- Is there a way to play audio on a mobile browser w
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
You'll need to do two things:
In your JavaScript code, have the
XMLHTTPRequest
signal that the AJAX request is complete with a custom URL:In your native code, you'll need to implement a
UIWebView
delegate that listens for this custom URL:No assurances this code parses/compiles but should give you the idea how to do it.