您的位置:首页 > 产品设计 > UI/UE

UILabel属性集合

2016-02-25 11:33 423 查看

1、设置圆角

<span style="font-size:18px;">    UILabel *_cutoffMsg = [[UILabel alloc] initWithFrame:CGRectMake(10, 60, self.bounds.size.width, 50)];
_cutoffMsg.backgroundColor = [UIColor redColor];
<strong><span style="color:#3366ff;">_cutoffMsg.layer.masksToBounds = YES;
_cutoffMsg.layer.cornerRadius = 10;</span></strong>
_cutoffMsg.text = @"优惠活动";
_cutoffMsg.font = [UIFont systemFontOfSize:10];
[self addSubview:_cutoffMsg];</span>


内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: