When I load a URL in UIWebView, an Alert pops up that prompts the user to download their app from the app store(presumably, the creators of the website were able to instantiate a UIAlertView using javascript or HTML5. I have no idea how though). I don’t want the alerts to show up. Anyone know how to disable such a feature in the UIWebView?
Share
You need to override the window.alert function with a blank function:
You can apply this on to a UIWebView using
stringByEvaluatingJavascript:.