Get Updates By E-mail 

Article Written By:
Johann Dowa

Library For A Custom iOS Text Label Supporting Rich Text Using An HTML Style Syntax

  •  
  •  
  •  
  •  
  •  

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:RichContentLabel

 

Update: It appears as though RichContentLabel has been removed by the developer – you can find a similar, newer similar library called THLabel here.

There’s an example included showing how to create the customized text in the above image.


  •  
  •  
  •  
  •  
  •  

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments