//字体大小 和颜色
let attributedString = NSMutableAttributedString(string: “阿斯顿发送发送到阿斯顿发生地方”)
let color = UIColor.redColor()
let normalAttributes = [NSForegroundColorAttributeName : color,NSFontAttributeName:UIFont.boldSystemFontOfSize(20)]
attributedString.addAttributes(normalAttributes, range: NSMakeRange(1,2))
self.newRanking.attributedText = attributedString
let attributedString = NSMutableAttributedString(string: “阿斯顿发送发送到阿斯顿发生地方”)
let color = UIColor.redColor()
let normalAttributes = [NSForegroundColorAttributeName : color,NSFontAttributeName:UIFont.boldSystemFontOfSize(20)]
attributedString.addAttributes(normalAttributes, range: NSMakeRange(1,2))
self.newRanking.attributedText = attributedString