-(void)setLabelSpace:(UILabel*)label withSpace:(CGFloat)space withFont:(UIFont*)font {
? ? ? ? NSMutableParagraphStyle *paraStyle = [[NSMutableParagraphStyle alloc] init];
? ? ? ? paraStyle.lineBreakMode = NSLineBreakByCharWrapping;
? ? ? ? paraStyle.alignment = NSTextAlignmentLeft;
? ? ? ? paraStyle.lineSpacing = space; //設(shè)置行間距
? ? ? ? paraStyle.hyphenationFactor = 1.0;
? ? ? ? paraStyle.firstLineHeadIndent = 0.0;
? ? ? ? paraStyle.paragraphSpacingBefore = 0.0;
? ? ? ? paraStyle.headIndent = 0;
? ? ? ? paraStyle.tailIndent = 0;
? ? ? ? //設(shè)置字間距?NSKernAttributeName:@1.5f
? ? ? ? NSDictionary *dic = @{NSFontAttributeName:font, NSParagraphStyleAttributeName:paraStyle, NSKernAttributeName:@0.0f
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? };
? ? ? ? NSAttributedString *attributeStr = [[NSAttributedString alloc] initWithString:label.text attributes:dic];
? ? ? ? label.attributedText = attributeStr;
}