Is it possible to set multiple colors in UILabel?

A quote from Jason Coco cannot be set somewhat in UILabel ... but

how to do it?

any idea?

alt text

can set mix color in UILabel

Example "TEST" can I set E to red and the other to white?

+5
source share
4 answers

No, unfortunately, this is not possible with UILabel. You can use some alternatives to Google, and the iPad will have an NSAttributedString, but with UILabel the whole line should be in one font / color.

+2
source

FontLabel UILabel, . .

+11

TTTAttributedLabel UILabel, , , FontLabel, . , , NSAttributedString .

+7

iOS 5, iOS 6 . : https://developer.apple.com/documentation/uikit/uilabel#//apple_ref/doc/uid/TP40006797

UILabel attributedText iOS6, UILabel NSAttributedText.

+2

All Articles