0

I do not want my textView can be selected, but can detect link and link can be touched.

textView.selectable=NO
textView.dataDetectorTypes=UIDataDetectorTypeAll

But when selectable=NO, it can not detect link.

arghtype
  • 4,376
  • 11
  • 45
  • 60
Gao
  • 85
  • 1
  • 7
  • You can try some solution from this article. It was written by Objective-C but i think you can convert to Swift easily: http://stackoverflow.com/questions/23690164/uitextview-with-clickable-links-but-no-text-highlighting – nynohu Feb 06 '17 at 08:36
  • Can't you just disable editable? – Ted Huinink Feb 06 '17 at 09:47
  • tks, but i can not get rid of the magnify glass – Gao Feb 07 '17 at 03:24

0 Answers0