Breakpoint
Breakpoint

Reputation: 1541

Different opacity for UILabel and the text of the UILabel

I have a UILabel whose opacity has been changed to blank by using [UIColor clearColor] I now want to change the opacity of the text within the label to the full possible level. How do I do it?

Upvotes: 4

Views: 4239

Answers (1)

Dilip Rajkumar
Dilip Rajkumar

Reputation: 7074

Use the following code to change the opacity of UILabel text

[headerLabel setAlpha:0.5];

Happy coding..:)

Upvotes: 4

Related Questions