当前位置: 动力学知识库 > 问答 > 编程问答 >

uilabel - 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.

how 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

分享给朋友:
您可能感兴趣的文章:
随机阅读: