Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Titanium module for the TTTAttributedLabel iOS library
Objective-C Python JavaScript
branch: master

This branch is 12 commits ahead, 7 commits behind barbelith:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Classes
TTTAttributedLabel
TiTTTAttributedLabel.xcodeproj
assets
dist
documentation
example
hooks
platform
.gitignore
ComCodingpieTitttattributedlabel_Prefix.pch
LICENSE
README.md
build.py
manifest
module.xcconfig
timodule.xml
titanium.xcconfig

README.md

TiTTTAttributedLabel Module

Description

Wrapper for the TTTAttributedLabel library

Supports highlighting for all checking types supported by NSTextCheckingTypes.

It handles clicks and fires events for the following types:

  • links: link event
  • addresses: address event
  • phone numbers: phone event
Event name Event object keys
link url: the clicked URL, for example "https://www.github.com"
phone phone: the clicked phone number
address address: an object containing information on the clicked address. Contains keys such as Street, ZIP, City and State.

In addition to automatically highlighting links, addresses and phone numbers, it is possible to manually turn a specified range of text into a link to a chosen URL, with addLinkToURL. See app.js.

By default, highlighted text is underlined. It is possible to disable underlining by setting the underlineLinks property to false. See app.js.

Example

See app.js file

Something went wrong with that request. Please try again.