Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

knut

macrumors newbie
Original poster
Jun 30, 2009
21
0
Hi All
I have already loaded html. after reading documentation I found that I can call js function in my code with stringByEvaluatingJavaScriptFromString methode.
in my DidLoad function I try call js function

Code:
[self.webView stringByEvaluatingJavaScriptFromString:[NSString stringWithFormat:@"Song = setInterval(play, 100);..."]];
[CODE]
but result is nothing happend.Is correct my js function call?
one more question.
how I can return value from js function to my objective c code?
thanks
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.