开发者

iPhone - Create underlined UIFont?

开发者 https://www.devze.com 2023-03-16 18:48 出处:网络
I already have a font object, I want to add underlined attribute to it without having to specify a font name.

I already have a font object, I want to add underlined attribute to it without having to specify a font name.

I need to do think either using UI开发者_如何学JAVAFont, or CTFont


There's no built-in support for underline, because that's not part of the font. It's drawn separately. See this SO thread for implementation details:

Underline Text in UILabel

0

精彩评论

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