• Stars
    star
    1,459
  • Rank 31,079 (Top 0.7 %)
  • Language
    Objective-C
  • License
    Other
  • Created about 13 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

simple rich text display for iOS using html-like markups

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 supports

Features

  • bold and italic style
  • color and size
  • stroke
  • indenting
  • kerning
  • line spacing
  • clickable links

Usage

  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
honcheng.com

More Repositories

1

PaperFold-for-iOS

Paper folding animation for iOS
Objective-C
2,704
star
2

iOSPlot

Chart library for iOS
Objective-C
1,372
star
3

iOS-StyledPageControl

Customizable PageControl for iOS
Objective-C
527
star
4

PaperFoldMenuController

A navigation menu on the left of the screen using on PaperFold
Objective-C
436
star
5

PaperFoldGallery

PaperFoldGallery for iOS
Objective-C
360
star
6

CATransform3D-Test

A test app to visualize view transformation when value in CATransform3D matrices change
Objective-C
352
star
7

PanelTableView

Multiple UITableViews in a UIScrollView
Objective-C
202
star
8

StyledTableViewCell-for-iOS

Customize table view cell border and highlights
Objective-C
195
star
9

SliderPageControl-for-iOS

An alternative for UIPageControl
Objective-C
137
star
10

AcornCharts-for-iOS

Fun way to display charts using balls that responds to device tilting
Objective-C
113
star
11

ScrollableTabHost-for-Android

Java
90
star
12

iOS-nodechat

iOS chat client for socket.io & node.js backend
Objective-C
70
star
13

GAE-APIMonitor

Google AppEngine application that monitors server API
Python
25
star
14

GAEMobileAnalytics

Google AppEngine Analytics for Mobile Applications
Objective-C
17
star
15

CAMediaTimingFunctionVisualizer

iPad app to preview animation based on custom animation curve created
Objective-C
17
star
16

Singapore-Bus-Services

Singapore Bus Services
6
star
17

rfremote-fan-api

API to control RF fan using pilight in Raspberry Pi
Python
5
star
18

SubRip-Parser-for-iOS

Objective-C
5
star
19

homebridge-rfremote-fan

HomeBridge plugin to replace RF remote control for fans
JavaScript
3
star