次のコードがあります。
comment = [[NSMutableAttributedString alloc] initWithString:self.highlightItem_.comment];
[comment addAttribute:NSFontAttributeName value:[UIFont fontWithName:kProximaNovaBold size:15] range:nameRange];
[comment addAttribute:NSForegroundColorAttributeName value:[UIColor colorWithRed:128/255.f green:203/255.f blue:255/255.f alpha:1.0] range:nameRange];
[comment addAttribute:NSFontAttributeName value:[UIFont fontWithName:kProximaNova size:15] range:commentRange];
[comment addAttribute:NSForegroundColorAttributeName value:[UIColor colorWithWhite:153/255.f alpha:1.0] range:commentRange];
ただし、これは iOS 6 のコードです。iOS 5 で同じことをしたい場合はどうすればよいですか。これにはサードパーティのライブラリを使用する必要がありますか?