mattt/TTTAttributedLabel — pull request #114 by hiltonc (2012-07-31 14:01:03+00:00)
Title: Show active link appearance

I need to show active links in my app to improve usability. To that end, I adapted the work done by @dikbrouwer to show the active link appearance. Some things to note:

- The example app runs on 4.3 and 5.1 exactly as I think you would expect it to. Specifically, you can scroll the table view when touching any part of the label, but table view cell selection can only occur outside of a link. As soon as you move your finger or actually tap the link, the link becomes inactive again.

- The solution is built using a custom UIGestureRecognizer. This is necessary because UITapGestureRecognizer does not provide enough information to update the active link state in response to touching, moving, ending, and cancelling. I realize you're not fond of using a custom gesture recognizer, but it is a far simpler solution than implementing the touch methods. I've also kept it within the same class file so that implementers do not need to include a separate pair of .h/m files.

Let me know if there's anything I can do to improve this contribution. Thanks.