return value javascript UIWebView
<p>i'm trying to get the return value of a javascript function(for example: <code>return "hello"</code>) with iPhone SDK.</p>

<p>On OS X the WebView method <code>-stringByEvaluatingJavaScriptFromString</code> returns a NSString containing the js function return value, but on the iPhone no value is returned.</p>

<p>How can I solve this?</p>

<hr>

<p>I found a private UIWebViewDelegate method</p>

<pre><code>- (void)webView:(id)fp8 runJavaScriptAlertPanelWithMessage:(id)fp12 initiatedByFrame:(id)fp16
</code></pre>

<p>invoked when the alert() function is used in the js script. So I can get the "return" value just by calling <code>alert(myReturValue)</code>.</p>

<p>That doesn't solve my problem, because I need something in the public SDK.</p>
