0

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 UIFont, or CTFont

aryaxt
  • 76,198
  • 92
  • 293
  • 442

1 Answers1

4

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

Community
  • 1
  • 1
FeifanZ
  • 16,250
  • 7
  • 45
  • 84