iOS修改行间距

iOS高级程序师技术群:622177838,期待你的加入

 NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc]init];

[paragraphStyle setLineSpacing:4];

[AttributedStr addAttribute:NSParagraphStyleAttributeName

 value:paragraphStyle

 range:NSMakeRange(0, [label.text length])];

label.attributedText = AttributedStr;

你可能感兴趣的:(iOS修改行间距)