I've a great problem. I must pass a variable of a javascript function into an objective-C variable. These are my code's parts:
Javascript:
function abc(){
something...
}
Objective-C:
myLabel.text = [webView stringByEvaluatingJavaScriptFromString:@"documentElement.textContent"];
The javascript code prints to video a number that I want use in my Objective-C code but with this nothing appears, instead using this code:
myLabel.text = [webView stringByEvaluatingJavaScriptFromString:@"document.documentElement.textContent"];
It pass the value that I want and the entire code of the javascript function!
Please some advice.... Thanks at all!!!
`