给UILabel添加删除线
by 伍雪颖
let attributedText =
NSAttributedString(string:
"道之不存,师之所存也",
attributes: [NSStrikethroughStyleAttributeName:1])
self.contentLabel.attributedText
= attributedText
时间: 2024-10-13 17:12:20
by 伍雪颖
let attributedText =
NSAttributedString(string:
"道之不存,师之所存也",
attributes: [NSStrikethroughStyleAttributeName:1])
self.contentLabel.attributedText
= attributedText