An iOS view that renders text using Core Text with tappable hyperlinks without a webview!
Objective-C C
Switch branches/tags
Nothing to show
Pull request Compare This branch is 16 commits behind jasarien:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Classes
CoreTextHyperlinkView.xcodeproj
.gitignore
CoreTextHyperlinkView-Info.plist
CoreTextHyperlinkViewViewController.xib
CoreTextHyperlinkView_Prefix.pch
MainWindow.xib
README.mdown
main.m

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