I would like to make a UIView with alpha and with label.

but I want UILabel in front of everything like this:

How to do it?
Here is the code:
- (void)viewDidLoad { [super viewDidLoad]; self.view.backgroundColor = [UIColor redColor]; UILabel *lbl = [[UILabel alloc] initWithFrame:CGRectMake(20, 20, 200, 20)]; lbl.text = @"AAAAAA"; lbl.backgroundColor = [UIColor clearColor]; UIView *v = [[UIView alloc] initWithFrame:CGRectMake(50, 210, 230, 50)]; v.backgroundColor = [UIColor greenColor]; v.alpha = 0.5; [v addSubview:lbl]; [self.view addSubview:v]; }
A green view with alpha 0.5 ... as text, and this is wrong !!!
thanks.
source share