美文网首页
UILabel的基本使用

UILabel的基本使用

作者: 求长生 | 来源:发表于2020-01-03 15:40 被阅读0次

常用方法

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;

});

相关文章

网友评论

      本文标题:UILabel的基本使用

      本文链接:https://www.haomeiwen.com/subject/vhbooctx.html