0

My problem is that I want to disable a user from copying and pasting in a UIWebView.

Eric Aya
  • 69,000
  • 34
  • 174
  • 243

1 Answers1

0

You can find the answer here: https://stackoverflow.com/a/5516027

Swift version of the solution:

// deactivate copy and paste for checkView in webView.subviews { if let scrollView = checkView as? UIScrollView { for checkView in scrollView.subviews { checkView.userInteractionEnabled = false } break } }

Community
  • 1
  • 1
Torsten B
  • 404
  • 2
  • 10