Sunday, February 24, 2013

iOS -- Constructing and Displaying Styled Texts

To display rich text formatted :

for example :     This is a car! , to display different styled text in one label.


The solution is use attributed text, here is the code,


To set the text to a label, use self.label.attributedText = [self attributedText];



No comments:

Post a Comment