Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A rich text view for iOS with basic HTML rendering
Objective-C C
branch: master

This branch is 3 commits ahead of briancollins:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
BCTextView.xcodeproj
example
src
.gitignore
README

README

Parses a tiny subset* of HTML into a drawable data structure. Because UIWebView is way too slow, and you can't "draw" NSAttributedStrings the same way as NSStrings (drawInPoint: drawInRect: etc), and NSAttributedStrings lack useful things such as links and image rendering.

* Supported tags/attributes:
- b
- a
- i
- br

Todo:
- trim adjacent spaces in the same manner as HTML renderers
- delegate link callbacks
- images
-- delegate image callbacks
- blockquote
- underline
- strikethrough

Nice to have:
- font tags, with attributes such as font size, color
- image align attribute
Something went wrong with that request. Please try again.