uitextView 行间距
2016-07-14 本文已影响78人
GreenB
NSMutableParagraphStyle*paragraphStyle = [[NSMutableParagraphStylealloc]init];
paragraphStyle.lineSpacing=5;//字体的行间距
warnView.text=@"您的车辆信息尚未完善,无法发布资源,是否立即去完善车辆信息?";
NSDictionary*attributes =@{NSFontAttributeName:[UIFontsystemFontOfSize:14],NSParagraphStyleAttributeName:paragraphStyle};
warnView.attributedText= [[NSAttributedStringalloc]initWithString:warnView.textattributes:attributes];