如何在字上加横线
2019-07-11 本文已影响0人
没得到的是你没遇到呢
pragma mark 如何在字上加横线
-(void)zitistr:(NSString *)old{
// self.oldPriceLable.text = old;
// self.oldPriceLable.textColor = [UIColor lightGrayColor];
// NSMutableAttributedString *newPrice = [[NSMutableAttributedString alloc] initWithString:[NSString stringWithFormat:@"%@",old]];
// [newPrice addAttribute:NSStrikethroughStyleAttributeName value:@(NSUnderlinePatternSolid | NSUnderlineStyleSingle) range:NSMakeRange(0, newPrice.length)];
// self.oldPriceLable.attributedText = newPrice;
}
加粗
[self.titlelable setFont:[UIFont fontWithName:@"Helvetica-Bold" size:16.f]];