您的位置:首页 > 其它

知识片段---label行间距设置

2016-01-26 14:07 260 查看
//设置行间距

   
NSMutableParagraphStyle
*paragraphStyle = [[NSMutableParagraphStyle

alloc]init];

    paragraphStyle.lineSpacing
= 8;

   
NSDictionary
*attributes = @{
NSFontAttributeName:[UIFont

systemFontOfSize:14],

NSParagraphStyleAttributeName:paragraphStyle};

   
self.describe.attributedText
= [[NSAttributedString
alloc]initWithString:homePageModel.des
attributes:attributes];
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: