开发者

How to set part of string to bold font to TextView on iphone

how to set part of text of the textview to bold font on开发者_如何学运维 iPhone?


Use NSAttributedString... Here is a sample UIController to draw NSAttributedString https://github.com/AliSoftware/Ali-Cocoa-Classes


You can't use UITextView for rich text, have a look at CoreText and NSAttributedString.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜