开发者

How to highlight a text of string in objective c

开发者 https://www.devze.com 2023-01-04 22:26 出处:网络
I have a random string given below. ungs-und AnimationsprogrammSport / Unterhaltung: Gegen Ge I would like to display the Sport text as a bold.

I have a random string given below.

ungs- und AnimationsprogrammSport / Unterhaltung: Gegen Ge

I would like to display the Sport text as a bold.

ungs- und Animationsp开发者_开发技巧rogramm Sport / Unterhaltung: Gegen G

How should can I display text like this?

Thanx in advanced


iOS does not yet support the display of attributed text.

I suggest using Three20's style component.


Look at CoreText and NSAttributedString in iOS4.

As a starting point, consider reviewing the WWDC videos on text handling...

0

精彩评论

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

关注公众号