I am using UIWebView to load a URL.
UIWebView
Inside the page of that URL, it uses alert(\"whatever msg\") as JavaScript. My UIWebView w
alert(\"whatever msg\")
Add this after your web view has loaded its content
[MyWebView stringByEvaluatingJavaScriptFromString:@"window.alert=null;"];