iPhone - Create underlined UIFont?
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
精彩评论