首页 新闻 会员 周边

给普通控件添加背景色的时候,控件上方会伴随一条黑线!怎么破?

0
[待解决问题]

给普通控件添加背景色的时候,控件上方会伴随一条黑线!怎么破?
比如:
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];

8023博客的主页 8023博客 | 初学一级 | 园豆:195
提问于:2016-02-19 15:18
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册