Skip to content
Advertisement

Tag: ios

Returning values to JavaScript when calling an Objective-C function

I’ve been using WebViewJavascriptBridge 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. 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

Simplest way to detect a pinch

This is a WEB APP not a native app. Please no Objective-C NS commands. So I need to detect ‘pinch’ events on iOS. Problem is every plugin or method I see for doing gestures or multi-touch events, is (usually) with jQuery and is a whole additional pluggin for every gesture under the sun. My application is huge, and I am

Advertisement