title: Coretext make part of a nsmutableattributtedstring linkable
body: <p>Suppose i have a CoreText <code>NSMutableAttributedString</code> with this words:"Continue Reading"</p>
  
  <p>I want to make the first word "Continue" clickable so that i can tap on it and show a load another <code>UIView</code>. I have found how to make it underlined and change the colour to blue but how can i make it linkable. Any example?</p>
  
  <p>This is my code to make it underlined and the foreground colour blue.</p>
  
  <pre><code>CFAttributedStringSetAttribute(string, CFRangeMake(0, 10),kCTForegroundColorAttributeName, [UIColor blueColor].CGColor);
            SInt32 type = kCTUnderlineStyleSingle;
  
  CFNumberRef underline = CFNumberCreate(NULL, kCFNumberSInt32Type, &amp;type);
  CFAttributedStringSetAttribute(string, CFRangeMake(0, text.length),kCTUnderlineStyleAttributeName, underline);
  CFAttributedStringSetAttribute(string, CFRangeMake(0, text.length),kCTUnderlineColorAttributeName, [UIColor blueColor].CGColor);
  </code></pre>
  
  <p>Thanks</p>