Migration Swift 4迁移获取错误无法转换类型为';[字符串:AnyObject]?';到预期的参数类型';[NSAttributedStringKey:Any]?&x27;
获取Swift 4迁移错误 “无法将类型为“[String:AnyObject]”的值转换为预期的参数类型“[NSAttributedStringKey:Any]”Migration Swift 4迁移获取错误无法转换类型为';[字符串:AnyObject]?';到预期的参数类型';[NSAttributedStringKey:Any]?&x27;,migration,ios11,swift4,Migration,Ios11,Swift4,获取Swift 4迁移错误 “无法将类型为“[String:AnyObject]”的值转换为预期的参数类型“[NSAttributedStringKey:Any]” 有什么帮助吗?更改为NSUnderlineStyle.styleSingle.rawValue 范例 let linkTextAttributes = [ NSAttributedStringKey.underlineStyle: NSNumber(value: NSUnderlineStyle.styleSingl
有什么帮助吗?更改为
NSUnderlineStyle.styleSingle.rawValue
范例
let linkTextAttributes = [
NSAttributedStringKey.underlineStyle: NSNumber(value: NSUnderlineStyle.styleSingle.rawValue as Int),
NSAttributedStringKey.foregroundColor: FAColor.blackColor()
]
self.lblPinDidNotMatchDescription.linkTextAttributes = linkTextAttributes
let linkTextAttributes: [NSAttributedStringKey: Any] = [
NSAttributedStringKey.underlineStyle: NSUnderlineStyle.styleSingle.rawValue,
NSAttributedStringKey.foregroundColor: UIColor.black
]