let dict = [NSParagraphStyleAttributeName:par,
NSFontAttributeName:self.alertContentLabelFont(),
NSUnderlineStyleAttributeName:NSNumber.init(integer: NSUnderlineStyle.StyleNone.rawValue)]
//Cannot convert value of type 'NSUnderlineStyle' to expected argument type 'Int' --->用rawValue 解决枚举转Int
网友评论