Search code examples
iphoneobjective-ctwitteruilabelthree20

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


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.


Solution

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