Reputation: 141
So in a UIWebView, whenever you press anything, a grey selection box appears. Like this:
I know you can remove it if you have access to the source code of the website, but obviously in this example I'm using YouTube, which I cannot access. Can I remove the grey highlight within Xcode?
Many thanks!
Upvotes: 1
Views: 860
Reputation:
Why not use JavaScript-injection?
[webView stringByEvaluatingJavaScriptFromString:
@"document.body.style.setProperty(\"-webkit-tap-highlight-color\", \"rgba(0,0,0,0)\");"
];
Upvotes: 4