uitextView 行间距

NSMutableParagraphStyle*paragraphStyle = [[NSMutableParagraphStylealloc]init];

paragraphStyle.lineSpacing=5;//字体的行间距

warnView.text=@"您的车辆信息尚未完善,无法发布资源,是否立即去完善车辆信息?";

NSDictionary*attributes =@{NSFontAttributeName:[UIFontsystemFontOfSize:14],NSParagraphStyleAttributeName:paragraphStyle};

warnView.attributedText= [[NSAttributedStringalloc]initWithString:warnView.textattributes:attributes];

你可能感兴趣的:(uitextView 行间距)