Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/beeradmoore/hashlabel


https://github.com/beeradmoore/hashlabel

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

HashLabel
=========
HashLabel was created to enable click functionality on a label to respond to certain words, such as # and @ tags.

In the following example the red text is created from using a regexp pattern (currently using one supplied by Eric Tarn) and using it in conjunction with NSAttributedString.
The blue rectangles are created by measuring the positions of words in the sentence, then creating and measuring the label, word by word, to find the start and end points of these words.
Word wrapping currently is partially working. It a hashtag is to span three lines, it will not work and subsequently cause the rest of the tags to be out of place.