iOS UITextView调整行间距


<span style="font-size:18px;">NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc]init];
paragraphStyle.lineSpacing = 10;//行间距    
NSDictionary *attributes = @{ NSFontAttributeName:[UIFont systemFontOfSize:14], NSParagraphStyleAttributeName:paragraphStyle};
textView.attributedText = [[NSAttributedString alloc]initWithString:@"    " attributes:attributes];</span>


你可能感兴趣的:(iOS UITextView调整行间距)