Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

An iOS view that renders text using Core Text with tappable hyperlinks without a webview!

branch: master
README.mdown

Core Text Hyperlink View

Project includes an example of how to use the core text view. It's pretty simple - create the view with a 0 height frame, set the attributes, set its text, and then ask it for it's size so that the height is just correct. It will calculate based on the constraining width, and any padding that you set.

There is also a Twitter specific subclass that enables @usernames and #hashtags to be linkified.

Settable Attributes:

  • textAlignment
  • textColor
  • linkColor
  • highlightedLinkColor
  • fontName
  • fontSize
  • paddingTop
  • paddingLeft
  • backgroundImage
  • bgImageTopStretchCap
  • bgImageLeftStretchCap
Something went wrong with that request. Please try again.