I have UIButton. In interface builder I set its title to be \'Attributed\'. How can I make its title to be underlined from code in Swift?
@IBOutlet weak var myBt
For swift 5
var attrs : [NSAttributedString.Key : Any] = [ NSAttributedString.Key.font : UIFont.systemFont(ofSize: 19.0), NSAttributedString.Key.foregroundColor : UIColor.blue, NSAttributedString.Key.underlineStyle : NSUnderlineStyle.styleSingle.rawValue ]