How do I set the color for an NSAttributedString on iPad?
I've seen a lot of questions related to colored text answered with "check out NSAttributedString
", but the NSForegroundColorAttributeName
constant that is defined for Mac OS does not seem to be defined for iOS 3.开发者_开发百科2+
Use the kCTForegroundColorAttributeName
constant instead.
精彩评论