Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pier-oliviert/phattributedlabel
Yet another drop-in replacement for UILabel that leverages Core Text
https://github.com/pier-oliviert/phattributedlabel
Last synced: about 2 months ago
JSON representation
Yet another drop-in replacement for UILabel that leverages Core Text
- Host: GitHub
- URL: https://github.com/pier-oliviert/phattributedlabel
- Owner: pier-oliviert
- Created: 2011-11-09T00:31:28.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2011-11-23T13:31:14.000Z (about 13 years ago)
- Last Synced: 2023-03-12T10:11:17.574Z (almost 2 years ago)
- Language: Objective-C
- Homepage: http://www.pothibo.com
- Size: 320 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PHAttributedLabel
This class is a direct subclass from **UILabel** and allow you to use a NSAttributedString instead of a normal NSString. Therefore, this class is a drop-in replacement of UILabel. It is highly influenced by OHAttributedLabel & TTTAttributedLabel.
It also gives **support to hyperlinks** with auto-detection support to using NSDataDetector.
### UILabel's method are all implemented
This class supports everything you would expect from a UILabel. Most of the stuff has been tested. If you find anything that a UIlabel support and PHAttributedLabel doesn't, please **fill an issue**.# How to install
## Drop-in installation
To use this library, you can simply drage PHAttributedLabel.framework in your Xcode Project. Once this is done, you will have to import the framework like this:
'#import '
Since the CoreText.framework is linked to this framework, you won't need to add it to your project for this library to work.
## Source Code installation
If you want to make modification and or put break-point inside PHAttributedLabel class, you will have to use the source code. Simply drag the PHAttributedLabel folder in your Xcode project and import it like you would normally do:
'#import "PHAttributedLabel.h"'
# Sample Code & Documentation
You have a sample code in the Example folder. For the documentation, I have described to the best of my knowledge the 'PHAttributedLabel.h' header file. If you have any other question, you can either ask me via **issues** or [@pothibo](http://www.twitter.com/pothibo) on Twitter.