常用方法
self.newLabel = ({
UILabel*label = [[UILabel alloc]init];
label.text = <#code#>;
label.textColor = [UIColor <#code#>];
label.font = [UIFont systemFontOfSize:<#code#>];
[<#code#> addSubview:label];
[label mas_makeConstraints:^(MASConstraintMaker *make) {
<#code#>
}];
label;
});










网友评论