问题
Possible Duplicates:
How to call an Objective-C method from Javascript in a Cocoa/WebKit app?
How to call Objective-C from Javascript?
Is there a way to call Objective-C code from JavaScript on UIWebView?
In Android, I am able to call an Android method from a web view's JavaScript script, which handles navigation to another page in the application. How would I do this in iOS?
来源:https://stackoverflow.com/questions/7171163/how-do-i-call-an-objective-c-method-from-javascript-on-uiwebview