问题
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
- List item
- 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 ?
回答1:
I would recommend using TTStyledLabel
from the Three20
library. It provides the desired functionally and would save you the time of writing your own.
来源:https://stackoverflow.com/questions/5895306/uilabel-with-basic-rich-text-support