This question gave me the greatest understanding of the problem ...
Dead end with GCD and webView
, , JS stringByEvaluatingJavaScriptFromString:, , iOS, , , "" .
- JS alert setTimeout, - ...
NSString *jsMyAlert = @"setTimeout(function(){alert('FOOBAR');}, 1);";
[myWebView stringByEvaluatingJavaScriptFromString:jsMyAlert];
- , UIWebView a UIAlertView, UIWebView JS alert. .