Some time ago I mentioned TTTAttributedLabel that provides a nice straightforward library for easily creating text labels with support for rich text.
Here’s another nice library for creating rich text from Hang Chen that provides a number of very useful features such as the ability to easily choose fonts and embed images with support for link tapping events and alignment changes.
Everything is done using an HTML style syntax.
– It’s a small browser render engine for browser, using Core-Text without leverage the UIWebView.
– It has its own smart HTML parser, who can handle all invalid cases, such as unclosed tags and overlapping tags.
– Fully supports image layout as well as text formatted layout.
– Useful callback function for link tapping event and image tapping event.
Here’s an image from the readme showing RichContentLabel in action:
You can find RichContentLabel on Github here.
There’s an example included showing how to create the customized text in the above image.
- Open Source Full Featured Objective-C Rich Text Library W/Image Support From Hulu
- Open Source iOS Library Allows UIAppearance Usage With A CSS Style Syntax
- Open Source: Rich Text-Editing View Using Core Text
- Library Providing Easily Customizable HTML-Style Syntax For Rich Text With NSAttributedString
- Best Resources In iOS Development – June 18th, 2012
Original article: Library For A Custom iOS Text Label Supporting Rich Text Using An HTML Style Syntax
©2013 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.