//创建属性字符串
let str:NSMutableAttributedString=NSMutableAttributedString.init(string: "tab底部")
//添加多个属性
str.addAttributes([NSAttributedStringKey.foregroundColor:UIColor.red], range:NSMakeRange(0, 2))
//添加单个属性
str.addAttribute(NSAttributedStringKey.font, value: UIFont.systemFont(ofSize: 12), range: NSMakeRange(0, 2))
footlbl.attributedText=str
===============