bgView.backgroundColor = [UIColor colorWithWhite:0.falpha:0.5];
UIColor*color = [UIColor blackColor];
bgView.backgroundColor= [color colorWithAlphaComponent:0.5];
提供参考
bgView.backgroundColor = [UIColor colorWithWhite:0.falpha:0.5];
UIColor*color = [UIColor blackColor];
bgView.backgroundColor= [color colorWithAlphaComponent:0.5];
提供参考