PDA

View Full Version : Objective C - Sencha Touch Bridge



anonymous123456789
22 Aug 2012, 9:25 AM
Hello,

How can I call an Objective C method from Sencha Touch and how can I call a Sencha Touch function from Objective C?

I have a sencha touch application embedded within an iOS webview and I want to be able to communicate between the Sencha Touch code in the webview and the native iOS Objective C code outside of it.

I know that this can be done with plain javascript, but I would like to know how it can be done with Sencha Touch.

Thanks

mitchellsimoens
24 Aug 2012, 5:56 AM
Sencha Touch is just JavaScript so if you can do it with JavaScript then you can do it with ST

Abhishek Srivastava
28 Aug 2012, 11:08 PM
can u give an example?

shantaveer
24 Mar 2014, 12:05 PM
You have to write phonegap/cordova plugin to call Objective-C message.