iOS6から、UILabel, UITextView, UITextFieldに、 attributedText というNSAttributedString型のプロパティが追加されました。NSAttributedStringは文字列の属性を管理するクラスで、これを使用するとフォントや文字色、背景色、カーニング等の属性をテキスト内の指定範囲に対して適用することができるようになります。 基本的な実装手順 基本的な手順は次の通りです。 1. NSMutableAttributedStringオブジェクトを生成 initWithString: メソッドでオブジェクトを生成します。 NSString *str = @"NSAttributedString Sample"; NSMutableAttributedString *attrStr; attrStr = [[NSMutableAttribu
![UILabel, UITextView, UITextFieldのテキストを NSAttributedString で装飾する - その後のその後](https://cdn-ak-scissors.b.st-hatena.com/image/square/245d72e7ec76691f4feb7d362771faca0cd97ac4/height=288;version=1;width=512/http%3A%2F%2Ff.cl.ly%2Fitems%2F2p3h0r391v3C2I1q2e0b%2Fsample1.png)