如何在字上加横线

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]];

你可能感兴趣的:(如何在字上加横线)