开发者

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

开发者 https://www.devze.com 2023-04-01 18:39 出处:网络
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-Co

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

精彩评论

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

关注公众号