Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

is it possible to set multiple color in UILabel?

Tags:

uilabel

iphone

Quote from Jason Coco it not possible to set multiple in UILabel... but

how to do like this?

any idea?

alt text

is it possible to set mix color in UILabel

example "TEST" can i set E to red color and another to white color?

like image 809
RAGOpoR Avatar asked Mar 16 '10 05:03

RAGOpoR


2 Answers

FontLabel is a drop-in replacement for UILabel that can take an attributed string as its text. That will allow you use multiple colors and fonts in a single label.

like image 195
Tom Avatar answered Oct 04 '22 18:10

Tom


TTTAttributedLabel is a drop-in replacement for UILabel that's a lot more lightweight and simple than other libraries like FontLabel, for instance. All you would need to do is set an NSAttributedString as the text for that label.

like image 30
mattt Avatar answered Oct 04 '22 20:10

mattt