Skip to content

Instantly share code, notes, and snippets.

@elpsk
Created July 17, 2014 08:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elpsk/7b110f9cb29840f555b2 to your computer and use it in GitHub Desktop.
Save elpsk/7b110f9cb29840f555b2 to your computer and use it in GitHub Desktop.
- (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