0

Possible Duplicate:
iPhone: How to Display Underlined Text in a Button?
underline text in UIlabel

I have a section im my app like this...Not a member? Signup here, where here is a custom button of transparent background and upon clicking takes the user to a url in safari. Now what i need is i want to make this button title underlined so that it looks like a hyperlink. Thanks

Community
  • 1
  • 1
user1700171
  • 9
  • 1
  • 6
  • You're gonna have to implement the underlining yourself. You can also make a custom button. Some good pointers can be found here: http://stackoverflow.com/q/2711297/653513 – Rok Jarc Nov 14 '12 at 14:30
  • Or a simpler solution here: http://stackoverflow.com/questions/7565407/underline-uilabel-text – Rok Jarc Nov 14 '12 at 14:30

2 Answers2

0

You can set a custom label for titleLabel in the UIButton and create underline in the custom UILabel: Underline text in UIlabel

Community
  • 1
  • 1
Dave
  • 1,081
  • 6
  • 10
-1

If the button title will be static, the easiest way is probably to create an image of the text (underlined) and use the image as the button image on a custom button.

HackyStack
  • 4,887
  • 3
  • 22
  • 28