给UILabel添加删除线

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

let attributedText = NSAttributedString(string: "道之不存,师之所存也",
            attributes: [NSStrikethroughStyleAttributeName:1])
self.contentLabel.attributedText = attributedText