Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nicklockwood/HTMLLabel
[DEPRECATED]
https://github.com/nicklockwood/HTMLLabel
Last synced: 3 months ago
JSON representation
[DEPRECATED]
- Host: GitHub
- URL: https://github.com/nicklockwood/HTMLLabel
- Owner: nicklockwood
- License: other
- Created: 2012-11-18T23:07:44.000Z (over 12 years ago)
- Default Branch: origin
- Last Pushed: 2017-10-26T10:36:52.000Z (over 7 years ago)
- Last Synced: 2024-11-11T20:41:12.444Z (3 months ago)
- Language: Objective-C
- Homepage:
- Size: 77.1 KB
- Stars: 139
- Watchers: 9
- Forks: 22
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
***************
WARNING: THIS PROJECT IS DEPRECATED
====================================
It will not receive any future updates or bug fixes. If you are using it, please migrate to another solution.
***************Purpose
--------------HTMLabel is a simple UILabel subclass for displaying basic HTML content (e.g. bold/italic, links, bullet lists) on iOS without the overhead of using a UIWebView.
HTMLLabel is **BETA** software, and as such it should be expected to have bugs. You should also expect undocumented and/or backward-incompatible changes to the interface between now and the 1.0 release. That said, it's been used in a few shipping apps now and should be safe for production use.
Installation
--------------To use HTMLLabel in an app, just drag the class files into your project.
Usage
---------------Because HTMLLabel is a subclass of UILabel, you can use it in exactly the same way, either in code or Interface Builder. The only difference is that the label text will be treated as HTML.
You can provide styles in the form of a dictionary of attributes keyed by tag and/or CSS-style class name. Check out the example app for details.