views:

340

answers:

1

Hey,

I would like to know how you can disable UIActionSheets, specifically the Action Sheets being displayed after tapping and holding hyperlinks in a UIWebView. These seem to be enabled by default in UIWebViews containing the link address of the respective link in the title of the alert. They are also enabled in Safari.

(How) is it possible to disable all Action Sheets of this kind within a UIWebView?

Thanks in advance!

+2  A: 

I just found this solution myself. Add this to your CSS:

body {
  -webkit-touch-callout: none;
}

To be clear, this disables the action sheet that appears when you hold down a hyperlink.

Brian
Yea, you are right, I wrote the wrong one, but meant the Action Sheet, not an Alert. Thank you very much! ;-)
RodneyFarva