alekhine
alekhine

Reputation: 1620

UILabel with given transparency but textLabel should be opaque

I have a UILabel which should have transparency (alpha) = .6 but Text of UILable should have alpha = 1. is this possible? thanks for any suggestion in advance...

Upvotes: 3

Views: 478

Answers (1)

javieralog
javieralog

Reputation: 1337

label.backgroundColor=[UIColor colorWithWhite:0 alpha:0.6];
label.textColor=[UIColor colorWithWhite:0 alpha:1];

Upvotes: 10

Related Questions