A UILabel subclass looking and acting like a hyperlink
Objective-C
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
IHNHyperlinkLabel.h
IHNHyperlinkLabel.m
LICENSE
README.md

README.md

IHNHyperlinkLabel

This is a simple UILabel subclass to simulate hyperlink behaviour - underlined text becoming highlighted on touch and sending notification to its delegate.

Usage

Create a new label in Interface Builder, set highlight color, shadow color & offset and bind the delegate property. Change label's class to IHNHyperlinkLabel and you're done!

Notes

  • This code uses Automatic Reference Counting and is licensed under BSD license.
  • Inspired by Yamaguchi Tatsuya's LinkedLabel.