I have a UIWebView with a form on it. I would like to get the response from the form sent back to my application so that it can respond accordingly. Is there anyway to do this with javascript or anything?
Something like:
NSString *formValue1 = [webview stringByEvaluatingJavaScriptFromString:@"document.forms[0].elements[0]"];
来源:https://stackoverflow.com/questions/4620972/can-i-pass-a-variable-from-a-uiwebview-back-to-my-app-using-javascript-or-any-w