title: Returning values to JavaScript when calling an Objective-C function
body: <p>I've been using <a href="https://github.com/marcuswestin/WebViewJavascriptBridge" rel="nofollow">WebViewJavascriptBridge</a> to bridge Objective-C and JavaScript in an iOS application. It works great but it lacks support for returning values to the calling JavaScript code from the called native Objective-C function.</p>
  
  <p>I'm pretty sure that Cordova (PhoneGap) does that in some way with callbacks but I've been having a hard time trying to understand how the underlying mechanics work. </p>
  
  <p>Is there anyone who's had the same problem and that managed to find a solution?</p>