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
  • 73,272
  • 89
  • 288
  • 432

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,108
  • 6
  • 46
  • 80