UIWebview Doubletap for selecting text

I created an application that displays some text in a UIWebview. I want to give the user the ability to double-click on a specific word to select it (a selection range should appear that appears only when a long touch is currently in progress).

+4
source share
1 answer

I don't think UIWebView is flexible enough for what you want.

If everything you show is rich in text, you should probably use NSAttributedString and display it using subclasses of UITextView or one of the many highlighted libraries .

0
source

Source: https://habr.com/ru/post/1369063/


All Articles