给普通控件添加背景色的时候,控件上方会伴随一条黑线!怎么破?
比如:
UILabel *tag1 = [[UILabel alloc] init];
tag1.font = [UIFont systemFontOfSize:12.0f weight:0];
tag1.textAlignment = NSTextAlignmentCenter;
// tag1.backgroundColor = [UIColor colorWithRed:240/255.0 green:243/255.0 blue:245/255.0 alpha:1.000];
tag1.backgroundColor = [UIColor whiteColor];
tag1.textColor = [UIColor grayColor];
tag1.tag = 100 + i;
[self.contentView addSubview:tag1];