开发者

How do I set the color for an NSAttributedString on iPad?

开发者 https://www.devze.com 2023-01-07 03:55 出处:网络
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 def

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消