0

Possible Duplicates:
How to call an Objective-C method from Javascript in a Cocoa/WebKit app?
How to call Objective-C from Javascript?

Is there a way to call Objective-C code from JavaScript on UIWebView?

In Android, I am able to call an Android method from a web view's JavaScript script, which handles navigation to another page in the application. How would I do this in iOS?

Community
  • 1
  • 1
Sreeram
  • 3,160
  • 6
  • 33
  • 44
  • Indeed, the top answer to the second of those should be exactly what the poster here wants to see. The accepted answer to the first is for OS X only and won't work on iOS. – Tommy Aug 24 '11 at 06:36
  • Indeed, the top answer to the second of those should be exactly what the poster here wants to see. The accepted answer to the first is for OS X only and won't work on iOS. – Tommy Aug 24 '11 at 06:37
  • @Tommy, when I entered that comment the OP didnt say whether he want it for iOS or Mac.. He only asked how would he do it for objective C – Krishnabhadra Aug 24 '11 at 06:40
  • _@Tommy_ Thanks for the response I will try the pointed solution and let you know – Sreeram Aug 24 '11 at 06:46
  • @KrishnaBhadra Thanks for your response too.I was checking the response in the pointed questions to see which suits my need.Meanwhile tommy has pointed me to exact solution – Sreeram Aug 24 '11 at 06:48
  • hi folks, i tried with the pointed solution.It works like a charm.thanks all for the help – Sreeram Aug 24 '11 at 11:56

0 Answers0