simple rich text display for iOS using html-like markups
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 supports
Drag RTLabel.h and RTLabel.m into your project. Import CoreText framework
#import “RTLabel.h”
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];
Supports the following tags
Bold
Italic
underline, underline with color
link
custom font
custom font with strokes
custom font with kerning
alignment
indentation