0

Is there a way to programmatically select a text without showing the pins at the beginning and at the end of the selected text?

Example:

sebenalern
  • 2,425
  • 3
  • 23
  • 34
Eduardo
  • 99
  • 1
  • 6

1 Answers1

-1

Although you should be more precise, I presume you just want to highlight some parts of the text with a background color. Therefore you can use NSAttributedString.

You can look up how to create an attributed String here and how to use background color on it here.

Community
  • 1
  • 1
fredpi
  • 7,419
  • 5
  • 38
  • 57