Skip to content

luanheart/DTCoreText

This branch is 322 commits behind Cocoanetics/DTCoreText:develop.

Folders and files

NameName
Last commit message
Last commit date
Feb 19, 2016
Feb 10, 2016
Jul 3, 2015
Feb 12, 2016
Dec 29, 2015
Jul 4, 2015
Mar 31, 2015
Jul 9, 2011
Oct 1, 2013
Dec 29, 2015
Jun 4, 2014
Dec 29, 2015
Oct 5, 2013
Jan 10, 2011
Dec 18, 2013
Jan 29, 2015
Oct 1, 2013

Repository files navigation

DTCoreText

This project aims to duplicate the methods present on Mac OSX which allow creation of NSAttributedString from HTML code on iOS.

The project covers two broad areas:

  1. Layouting - Interfacing with CoreText, generating attributed strings from HTML code
  2. User Interface - UI-related classes render these objects, specifically DTAttributedTextView, DTAttributedLabel and DTAttributedTextCell.

This is useful for drawing simple rich text like any HTML document without having to use a UIWebView. For text selection and highlighting (as you might need for an Editor or Reader) there is the commercial DTRichTextEditor component which can be purchased in the Cocoanetics Parts Store.

Documentation

Documentation can be browsed online or installed in your Xcode Organizer via the Atom Feed URL.

A Q&A answers some frequently asked questions.

Changelog: GitHub Releases

There is also a [Programming Guide](Documentation/Programming Guide-template.markdown) with a set of solutions to common problems.

Follow @cocoanetics on Twitter or subscribe to the Cocoanetics Blog for news and updates.

License

It is open source and covered by a standard 2-clause BSD license. That means you have to mention Cocoanetics as the original author of this code and reproduce the LICENSE text inside your app.

You can purchase a Non-Attribution-License for 75 Euros for not having to include the LICENSE text.

We also accept sponsorship for specific enhancements which you might need. Please contact us via email for inquiries.

About

Methods to allow using HTML code with CoreText

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 98.8%
  • Other 1.2%