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
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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