I added some attributes to my attribute buttons
let attr = NSMutableAttributedString(string: currTitle) attr.addAttribute(NSStrikethroughStyleAttributeName, value: 2, range: NSMakeRange(0, attr.length)) attr.addAttribute(NSForegroundColorAttributeName, value: UIColor.redColor(), range: NSMakeRange(0, attr.length)) currButton?.setAttributedTitle(attr, forState: UIControlState.Normal)
How can I remove NSStrikethroughStyleAttributeName from it after clicking a button?
ios swift nsattributedstring
Salome tsiramua
source share