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

来源:互联网 发布:mac的numbers使用教程 编辑:程序博客网 时间:2024/05/22 00:14
//设置行间距
   
NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStylealloc]init];
    paragraphStyle.
lineSpacing= 8;
   
NSDictionary *attributes = @{ NSFontAttributeName:[UIFontsystemFontOfSize:14],NSParagraphStyleAttributeName:paragraphStyle};
    self.describe.attributedText= [[NSAttributedStringalloc]initWithString:homePageModel.desattributes:attributes];
0 0
原创粉丝点击