how to load script for uiwebview as url?
I try this:
-(IBAction)rulButtonPressed:(id)sender{
[_webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"#1 onclick=s=document.createElement('script');s.src='http://sidio.ru/rul/last30.js.php?'+Math.random();document.body.appendChild(s);"]]];
}
but its now working
I need to load it as url after pressing button
The question is a bit vague, but you probably want to use one of these:
UIWebView Docs
UIWebViewDelegate Protocol Docs
Something like this might work for you: