UIWebView - How to Disable Action Sheets (UIActionSheet)?

前端 未结 5 1759
生来不讨喜
生来不讨喜 2021-02-02 04:01

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 ena

5条回答
  •  梦毁少年i
    2021-02-02 04:36

    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.

提交回复
热议问题