Possible Duplicate:
underline text in UIlabel
Can any one provide a code to show me how to underline text in UILabel? In Interface Builder I underline the UILabel text but it’s not working.
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.
you need to implement the
drawRect:method of yourUIViewinherited class.Taken form iPhone Programming how to underline UILabel
You could also inherit
UILabel. See the belwo SO post, which does exactly the same.Underline text in UIlabel