1.采用透明度
//添加分割线 - (void)addLineWith:(UIView *)line { line.backgroundColor = [UIColor blueColor]; line.alpha = 1.0; [self.bottomView addSubview:line]; }
2.设置线条的宽度
//下划线 UIView *lineView = [[UIView alloc] initWithFrame:CGRectMake(0, 89.5, screen_width, 0.5)]; lineView.backgroundColor = separaterColor; [cell addSubview:lineView];
浙公网安备 33010602011771号