livingtech
livingtech

Reputation: 3660

text underline a different color than the text color in iOS

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?

Upvotes: 1

Views: 716

Answers (1)

Diego
Diego

Reputation: 413

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

Upvotes: 1

Related Questions