mattt/TTTAttributedLabel — pull request #115 by hiltonc (2012-07-31 15:37:00+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.

- I extended the example app so that when you tap a cell, it pushes another view controller showing the TTTAttributedLabel without a UITableView. I found this useful when testing use case scenarios, prompting me to scrap my initial implementation and adopt a different one with better behavior.

- The solution is built using UIResponder touch methods. I initially used a UIGestureRecognizer subclass, but as I improved the active state behavior, the interaction between TTTAttributedLabel and the gesture recognizer quickly became unmanageable.

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