去除UILabel的背景色

来源:互联网 发布:mac如何查看运行程序 编辑:程序博客网 时间:2024/04/29 12:54

用代码创建UILabel时,放在view上会有白色的背景色,可以使用以下代码去除。


UILabel *SegmentLabel=[UILabel alloc] init];

SegmentLabel.backgroundColor=[UIColorclearColor];


原创粉丝点击