开发者

how to apply 2 text styles to a label in iphone

i have a tableview. in cell i am displaying some string data from xml. in that string some italic tags and some normal tags r there. but when i try to display the entire string it is displayed in normal text and not getting italic text. i tried by taking 2 labels one with italic text and another with normal text and appending these 2 labels but i am getting entire string as italic.

h开发者_JAVA技巧ow can we apply 2 styles in a label

Thanks in advance


Currently, the UILabel control does not support "rich text." You cannot have some text italic and some normal in the same UILabel.

Three20 has a label that supports this, however:

http://api.three20.info/interface_t_t_styled_text_label.php

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜