//Xcode12.0.1 注意 view 的x坐标必须是整数,不然切的圆会少一块
- (UIView *)messageRedmin{
if (!_messageRedmin) {
_messageRedmin= [[UIViewalloc]initWithFrame:CGRectMake((int)((SCWIDTH/2-60)/2+60+4), 12, 8, 8)];
_messageRedmin.backgroundColor = [UIColor redColor];
_messageRedmin.layer.cornerRadius = 4;
_messageRedmin.layer.masksToBounds = YES
}
return _messageRedmin;
}
网友评论