最近在项目中遇到一个问题ios7以下的设备才会出现:

attibuteLabel 增加了自定的link,事件增加上去了。颜色没有变化。
进过debug发现。
kCTForegroundColorAttributeName
NSForegroundColorAttributeName
这两个属性在ios7+的设备是等价的。
但是在ios7-分别代表不同的属性。

二 TTTAttibuteLabel 在初始化的时候设置的是kCTForegroundColorAttributeName属性。给 self.linkAttributes的

但是外部传入的attibuteString是 NSForegroundColorAttributeName 属性,
导致在调用方法 addLinksWithTextCheckingResults 添加属性时
[mutableAttributedString addAttributes:attributes range:result.range];
无法正确添加.
PS:addAttributes 方法如果遇到已经有的属性,会用心的属性替换原来的属性。

总结解决办法:
一、把TTTAttibuteLabel里面的属性改成和外部一致。
二、修改传入的attibuteString的属性

我暂时用的是办法二,这样不影响全局。