用代码创建UILabel时,放在view上会有白色的背景色,可以使用以下代码去除。
UILabel *SegmentLabel=[UILabel alloc] init];
SegmentLabel.backgroundColor=[UIColor clearColor];
用代码创建UILabel时,放在view上会有白色的背景色,可以使用以下代码去除。
UILabel *SegmentLabel=[UILabel alloc] init];
SegmentLabel.backgroundColor=[UIColor clearColor];