title: Detecting tap on a UITextView only detects cancellations
body: <p>I have been struggling to detect a tap on a UITextView with Swift.</p>
  
  <p>My UITextViews are in a table, I must be able to detect links and press them, those links length are unknown. </p>
  
  <p>Also if I tap on the cell, that I don't tap on a link, I want push a new UIViewController on my navigation controller stack.</p>
  
  <p>I tried to create my own textview to overwrite the touchesCancelled, but it wasn't a success. It detects the cancellation which isn't considered a tap on the real device. </p>
  
  <p>The bug doesn't occur in the simulator, but it seems I can't tap on the real device, only long press will work.</p>
  
  <pre><code>class LinkTextView: UITextView {
      override func touchesCancelled(touches: Set&lt;NSObject&gt;!, withEvent event: UIEvent!) {
           self.textViewWasTapped(self) 
      }
  }
  </code></pre>
  
  <p>I tried adding directly a gesture recognizer. I didn't have any success there either. It doesn't call the gesture recognizer at all. </p>
  
  <p>I added the UIGestureReconizer delegate to my UIViewController and those lines in my </p>
  
  <pre><code>func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -&gt; UITableViewCell {
       var singleTap : UIGestureRecognizer = UIGestureRecognizer(target: self, action: "tapTextView:")
          singleTap.delegate = self
               cell.mTextOutlet.attributedText = myMutableString
               cell.mTextOutlet.addGestureRecognizer(singleTap) 
  </code></pre>
  
  <p>In my LinkTextView class :</p>
  
  <pre><code>class LinkTextView: UITextView {
      func tapTextView(stapGesture: UIGestureRecognizer){
          println("TAPPING1")
      }
  }
  </code></pre>
  
  <p>I looked the forums and found this post : <a href="https://stackoverflow.com/questions/22379595/uitextview-link-tap-recognition-is-delayed">post</a>. It suggests to use <a href="https://github.com/choefele/CCHLinkTextView" rel="nofollow noreferrer">CHHLinkTextView</a>. I tried to use it but what I want is to detect the link automatically, which normal uitextview actually does. </p>
  
  <p>I did try using the checkBox in interface builder to parse links with the CHHLinkTextView, but it doesn't work. I didn't see anything in the documentation suggesting it could be done.</p>
  
  <p>How should I proceed ?</p>