UILabel 字体添加阴影
作者:
一个萝卜X个坑 | 来源:发表于
2019-01-11 15:15 被阅读22次_numberLbl=[[UILabel alloc]init];
NSShadow *shadow=[[NSShadow alloc]init];
shadow.shadowBlurRadius=6.0;
shadow.shadowOffset=CGSizeMake(0, 0);
shadow.shadowColor=[UIColor blackColor];
NSAttributedString *attString=[[NSAttributedString alloc]initWithString:[NSString stringWithFormat:@"%ld",msgNumber] attributes:@{NSShadowAttributeName:shadow}];
_numberLbl.attributedText=attString;
本文标题:UILabel 字体添加阴影
本文链接:https://www.haomeiwen.com/subject/yquxdqtx.html
网友评论