Reputation: 2670
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
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
Reputation: 12436
Try
- (NSString *)stringByEvaluatingJavaScriptFromString:(NSString *)script
Upvotes: 3