Find solution

How do I call an objective-c method?

Here are 21 best answers to ‘How do I call an objective-c method?’ - the most relevant comments and solutions are submitted by users of Stack Overflow, Quora and Yahoo! Answers.

Best solution

  • How do I call an Objective-C method from Javascript in UIWebView?

    I'm developing a native iPhone app using Phonegap, so everything is done in HTML and JS. I am using the Flurry SDK for analytics and want to use the [FlurryAPI logEvent:@"EVENT_NAME"]; method to track events. Is there a way to do this in Javascript? So when tracking a link I would imagine using something like <a onClick="flurryTrackEvent("Click_Rainbows")" href="#Rainbows">Rainbows</a> <a onClick="flurryTrackEvent("Click_Unicorns...


    One way to do this is to setup a delegate on the UIWebView which has the shouldStartLoadEvent. Inside...

    Mark as irrelevant Undo

Other solutions