Created
July 17, 2014 08:54
-
-
Save elpsk/7b110f9cb29840f555b2 to your computer and use it in GitHub Desktop.
This file contains 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*) subtitle:(NSString*)pString | |
{ | |
NSMutableAttributedString *string = [[NSMutableAttributedString alloc] initWithString:pString]; | |
NSRange selectedRange = NSMakeRange(0, 6); // 6 characters, starting at index 0 | |
[string beginEditing]; | |
[string addAttribute:NSFontAttributeName value:[UIFont fontWithName:@"Helvetica-Bold" size:12.0] range:selectedRange]; | |
[string endEditing]; | |
return string; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment