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>