Domanda

I'm currently using a UITextView and setting its attributedText property, but I can't see a way to set the underline color different from the text color using my NSMutableAttributedString. Am I just missing something? Is this possible?

Do I need to look into CoreText? Is it possible there?

È stato utile?

Soluzione

You can set two UITextViews with the same text and different colors on top of each other, with the textview underneath underlined.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top