Ad

Our DNA is written in Swift
Jump

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.

Open Source Software

This component is available as open source software, covered by a BSD 2-clause license. As such you can use it for free in your apps, even commercially. But you have to mention that your software makes use of this component inside your app.

You can purchase a “Non-Attribution License” via the Parts Store button so that you don’t have to attribute. This license costs 75 Euros.

Parts Categories:

Comments are closed.