MobX
MobX

Reputation: 2670

Calling JavaScript function from Objective c

I am developing an application for iphone.I need to call a javascript function into my objective c class .Is that possible??

Upvotes: 0

Views: 1120

Answers (2)

Reuven
Reuven

Reputation: 2132

You may want to check out a category I did arround NSString for getting JS and regular expressions: iPhone - evaluating JavaScript and Regular Expressions using UIWebView

Upvotes: 0

nduplessis
nduplessis

Reputation: 12436

Try

- (NSString *)stringByEvaluatingJavaScriptFromString:(NSString *)script

Upvotes: 3

Related Questions