//设置缩进、行距
NSMutableParagraphStyle *style = [[NSMutableParagraphStyle alloc] init];
style.headIndent = 40;//缩进
style.firstLineHeadIndent = 0;
style.lineSpacing = 0;//行距
NSMutableAttributedString *text = [[NSMutableAttributedString alloc]initWithString:self.addressLabel.text];
[text addAttribute:NSParagraphStyleAttributeName value:style range:NSMakeRange(0, text.length)];
网友评论