title: Detecting taps on attributed text in a UITextView in iOS
body: <p>I have a <code>UITextView</code> which displays an <code>NSAttributedString</code>. This string contains words that I'd like to make tappable, such that when they are tapped I get called back so that I can perform an action. I realise that <code>UITextView</code> can detect taps on a URL and call back my delegate, but these aren't URLs.</p>
  
  <p>It seems to me that with iOS 7 and the power of TextKit this should now be possible, however I can't find any examples and I'm not sure where to start. </p>
  
  <p>I understand that it's now possible to create custom attributes in the string (although I haven't done this yet), and perhaps these will be useful to detecting if one of the magic words has been tapped? In any case, I still don't know how to intercept that tap and detect on which word the tap occurred.</p>
  
  <p>Note that iOS 6 compatibility is <em>not</em> required.</p>