0
我使用NSAttributedString在iOS6的,我似乎无法得到这个工作:核心文本背景色为iOS 6
[attributedString addAttribute:NSBackgroundColorAttributeName
value:[UIColor yellowColor]
range:range];
这是方法调用和NSBackgroundColorAttributeName
在iOS6的支持?
编辑: 解决了它。这是我身边的遗留问题。之前的kct *(例如kctforegroundcolorattributename
)字符串属性常量仍在使用中。这些阻止了新的API值正确实施。
是的,我用过。检查编辑看看我做了什么。 :) 谢谢! – benedictljj