#import "YYText.h"
- (void)test{
NSString *content = @"[狂笑]的生日[微笑],清晨我放飞一群白鸽,给你带来一个,今天是你的生日我的祖国,清晨我放飞一群白鸽,给你带来一个,今天是你的生日我的祖国,清晨我放飞一群白鸽,给你带来一个,今天是你的生日我的祖国,清晨我放飞一群白鸽,给你带来一个,今天是你的生日我的祖国,清晨我放飞一群白鸽,给你带来一个,今天是你的生日我的祖国,清晨我放飞一群白鸽,给你带来一个,今天是你的生日我的祖国,清晨我放飞一群白鸽,给你带来一个,今天是你的生日我的祖国,清晨我放飞一群白鸽,给你带来一个";
NSMutableAttributedString *result = [[NSMutableAttributedString alloc] initWithString:content];
[result addAttribute:NSForegroundColorAttributeName value:[UIColor redColor] range:NSMakeRange(0, content.length)];
[result addAttribute:NSFontAttributeName value:[UIFont systemFontOfSize:20] range:NSMakeRange(0 , content.length)];
// 修改行间距
NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc]init];