UIView *testView = [[UIView alloc] init];
第一种 testView = [UIColor colorWithRed:1.0 green:1.0 blue:1.0 alpha:0.5];
第二种 testView = [UIColor colorWithWhite:1.0 alpha:0.5];
第三种 testView.backgroundColor = [[UIColor whiteColor] colorWithAlphaComponent:0.5]
郑州iOS开发人员:王一
工作QQ:361002633