How to disable long touch in UIWebView?

后端 未结 4 483
南旧
南旧 2020-12-14 01:36

I want to disable long-touch from the application. I have no control on the HTML that I am loading on my WebView.

4条回答
  •  独厮守ぢ
    2020-12-14 02:19

    Open your view in Interface Builder, click on the web view and then un-check the "User Interaction Enabled" checkbox in the attributes inspector.

    If you want to do it in code, set the web view's userInteractionEnabled property to NO.

提交回复
热议问题