Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/beeradmoore/hashlabel
https://github.com/beeradmoore/hashlabel
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/beeradmoore/hashlabel
- Owner: beeradmoore
- Created: 2013-04-23T22:11:18.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-04-23T22:37:07.000Z (over 11 years ago)
- Last Synced: 2023-03-25T19:44:23.007Z (almost 2 years ago)
- Language: C#
- Size: 148 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.