Search code examples
objective-cciosrichtext

UILabel with basic rich text support


My ipad application has a custom look. It uses text labels extensively for displaying partly colored/shadowed/bold texts. Larger pieces of text may contain numbered lists and embedded Images. There could be couple rich text regions on a single page.

I am not sure that UIWebView is the right tool for displaying strings like:


MyApp title


Hello rich text world

  1. List item
  2. List item

Writing my own text rendering engine looks more sufficient to me than using UIWebView. Any ideas for lightweight rich text renderer ? c library or custom control ?


Solution

  • I would recommend using TTStyledLabel from the Three20 library. It provides the desired functionally and would save you the time of writing your own.