UILabel 具有基本的富文本支持
我的 iPad 应用程序具有自定义外观。它广泛使用文本标签来显示部分彩色/阴影/粗体文本。较大的文本可能包含编号列表和嵌入图像。单个页面上可能有几个富文本区域。
我不确定 UIWebView 是否是显示字符串的正确工具,例如:
MyApp title
Hello rich text world
- 列表项
- 列表项
编写我自己的文本对我来说,渲染引擎看起来比使用 UIWebView 更足够。 对于轻量级富文本渲染器有什么想法吗? c 库或自定义控件?
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 ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我建议使用
Three20
库中的TTStyledLabel
。它提供了所需的功能,并且可以节省您编写自己的功能的时间。I would recommend using
TTStyledLabel
from theThree20
library. It provides the desired functionally and would save you the time of writing your own.