i\'m trying to get the return value of a javascript function(for example: return \"hello\") with iPhone SDK.
return \"hello\"
On OS X the WebView method -stringByE
-stringByE
I had the same problem when I tried call some functions from google maps API.
There was a problem with returning objects, so I solved it by function toString().
NSString *result = [webView stringByEvaluatingJavaScriptFromString: @"map.getBounds().toString();"];