knut
Jul 8, 2009, 01:43 PM
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
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
