2013-04-12 45 views
0

我使用NSAttributedString在iOS6的,我似乎無法得到這個工作:核心文本背景色爲iOS 6

[attributedString addAttribute:NSBackgroundColorAttributeName 
          value:[UIColor yellowColor] 
          range:range]; 

這是方法調用和NSBackgroundColorAttributeName在iOS6的支持?

編輯: 解決了它。這是我身邊的遺留問題。之前的kct *(例如kctforegroundcolorattributename)字符串屬性常量仍在使用中。這些阻止了新的API值正確實施。

回答