Created
October 7, 2014 02:50
-
-
Save younthu/9fd1efa011a2f239287c to your computer and use it in GitHub Desktop.
Text color for attributtedString
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSMutableAttributedString *attrString = [[NSMutableAttributedString alloc] initWithString:text]; | |
[attrString addAttribute:NSForegroundColorAttributeName | |
value:[UIColor redColor] | |
range:NSMakeRange(0, @"yyyy年MM月dd日".length)]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment