Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I make clickable links like the Twitter and Facebook app? [duplicate]

Possible Duplicate:
How to make an expression clickable on iOS?

On Twitter and Facebook, usernames like @ and hashtags like # are clickable, and do something native within the app.

What is the best way to implement something like this? It would be nice if there was a drop in replacement for a UILabel for example.

like image 339
Sheehan Alam Avatar asked Jun 21 '11 17:06

Sheehan Alam


1 Answers

The TTTAttributedLabel project on github is a drop-in replacement for UILabel that supports embedding links. https://github.com/mattt/TTTAttributedLabel

like image 187
smountcastle Avatar answered Oct 05 '22 23:10

smountcastle