title: How do you use NSAttributedString?
body: <p>Multiple colours in an <code>NSString</code> or <code>NSMutableStrings</code> are not possible. So I've heard a little about the <a href="http://developer.apple.com/mac/library/documentation/Cocoa/Reference/Foundation/Classes/NSAttributedString_Class/Reference/Reference.html" rel="noreferrer"><strong><code>NSAttributedString</code></strong></a> which was introduced with the <strong>iPad SDK 3.2</strong> (or around 3.2) and is available on the iPhone as of <strong>iPhone SDK 4.0 beta</strong>.</p>
  
  <p>I would like to have a string that has three colours.</p>
  
  <p>The reason I don't use 3 separate NSStrings, is because the length of each of the three <code>NSAttributedString</code> substrings changes often and so I would prefer, not to use any calculations to re-position 3 separate <code>NSString</code> objects.</p>
  
  <p>If it's possible using <code>NSAttributedString</code> how do I make the following - (if not possible with NSAttributed string how would you do it):</p>
  
  <p><img src="https://imgur.com/eVpu7.png" alt="alt text"></p>
  
  <p><strong>Edit:</strong>
  Remember, <code>@"first"</code>, <code>@"second"</code> and <code>@"third"</code> will be replaced by other strings at any time. So using hardcoded NSRange values won't work.</p>