开发者

Displaying formatted text within a UITableView

I have to create a UITableView, that contains richly formatted text within each UITableViewCell.

My first attempt at solving the problem was to convert the text to html and render the text within a UIWebView. However, I found that my cells were taking too long to load, and webviewdidload isn't called while scrolling. I then tried piecing toge开发者_如何学Pythonther several formatted uilabels, but found that this method too caused performance issues.

I tried subclassing UITableViewCell and using CoreText drew NSAttributedStrings, however it is my understanding that CoreText is not available on devices with less than iOs 3.2, and I'd like my app to work on devices with ios 3.1.

I've heard that its also possible to use opengl es to render some formatted text, however this extends pretty far outside of my zone of experience.

Does anyone have any suggestions of simpler ways to approach this problem, or resources where I can learn more about rendering formatted text with opengl on iphone/ipad?

Thanks for your help!


I know there are multiple solutions out there but the one I know of and suggest you might look into is the Three20 library which includes TTStyledTextLabel.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜