最佳答案
使用属性字符串
截图
代码
NSDictionary * attribtues = @{NSStrikethroughStyleAttributeName:@(NSUnderlineStyleSingle),
NSStrikethroughColorAttributeName:[UIColor redColor]};
NSAttributedString * attr = [[NSAttributedString alloc] initWithString:@"label" attributes:attribtues];
self.label.attributedText = attr;
关于ios - Swift: strikethroughStyle For Label (Middle Delete Line For Label),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33818529/