Hi...
I want to underline the UIlabel text as hyperlink
UILabel *myLabel = [[UILabel alloc] initWithFrame:CGRectMake(20.0, 220.0, 160.0, 30.0)];
myLabel.text = @"click here";
how can i make the above string to be underlined..
Thanks for any help
Hi...
I want to underline the UIlabel text as hyperlink
UILabel *myLabel = [[UILabel alloc] initWithFrame:CGRectMake(20.0, 220.0, 160.0, 30.0)];
myLabel.text = @"click here";
how can i make the above string to be underlined..
Thanks for any help
Create a UIView with a height of 1 and a background color of black, and stick it below the label. Alternatively, you can use CoreText to render an attributed string with an underline, though that requires a bit more work.