Skip to content

Latest commit

 

History

History
7 lines (4 loc) · 709 Bytes

README.md

File metadata and controls

7 lines (4 loc) · 709 Bytes

UILabel+TJTapHandling

This category makes it so you can handle tapped hyperlinks in UILabels. The underlying way I'm doing this uses a strategy swirling around the internet that I've packaged up nicely. It seems to work pretty well, and the project layers on a pleasant API to use.

To configure link handling, call addURLHandler: on your label providing an object that conforms to TJLabelURLHandler. -label:didTapURL:inRange: will then be called on your handler when a link is tapped within that label's attributed text.

I'm currently using this in Opener's settings screen to add a link to a table section footer.