Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/honcheng/RTLabel
simple rich text display for iOS using html-like markups
https://github.com/honcheng/RTLabel
Last synced: 3 months ago
JSON representation
simple rich text display for iOS using html-like markups
- Host: GitHub
- URL: https://github.com/honcheng/RTLabel
- Owner: honcheng
- License: other
- Created: 2011-05-02T14:36:23.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2017-09-19T00:58:11.000Z (over 7 years ago)
- Last Synced: 2024-10-30T18:07:39.472Z (3 months ago)
- Language: Objective-C
- Homepage: http://honcheng.com
- Size: 906 KB
- Stars: 1,462
- Watchers: 74
- Forks: 382
- Open Issues: 48
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - RTLabel - simple rich text display for iOS using html-like markups (etc)
- awesome - RTLabel - simple rich text display for iOS using html-like markups (etc)
- awesome - RTLabel - Rich text formatting based on HTML-like markups for iOS. 【 [Priview](https://github.com/honcheng/RTLabel/raw/master/screenshot.png) 】 (OOM-Leaks-Crash / Label)
README
RTLabel
=======Rich text formatting based on HTML-like markups for iOS.
RTLabel works like UILabel, but supports html-like markups for rich text display.
It is based on Core Text, so it supports some of the stuff that Core Text supportsFeatures
--------* bold and italic style
* color and size
* stroke
* indenting
* kerning
* line spacing
* clickable linksUsage
-----1) Drag RTLabel.h and RTLabel.m into your project. Import CoreText framework
#import "RTLabel.h"
2) Create RTLabel
NSString *sample_text = @"bold,italic and underlined text, and text with custom font and color";
RTLabel *label = [[RTLabel alloc] initWithFrame:...];
[self addSubview:label];
[label setText:sample_text];
3) Supports the following tags
Bold
Italic
Bold & Italic
underline, underline with color
link
double underline , double underline with color
custom font
custom font with strokes
custom font with kerning
alignment
indentation
Minimum Requirements
--------------------
* ARC - this project uses ARC. If you are not using ARC in your project, add '-fobjc-arc' as a compiler flag for StyledPageControl.h and StyledPageControl.m
* Xcode 4.4 and newer (auto-synthesis required)Contact
-------[twitter.com/honcheng](http://twitter.com/honcheng)
[honcheng.com](http://honcheng.com)![](http://www.cocoacontrols.com/analytics/honcheng/rtlabel.png)