开发者

Multi-column text display on iphone

What is the best way of implementing 开发者_如何学Pythona multi-line + multi-column text display?

HTML? Tables?


If you are using HTML to display the text, webkit, (the iPhone HTML rendering engine) supports the multi-column CSS properties.

You can read about them at http://webkit.org/blog/88/css3-multi-column-support/ ...


I would go with UITableView and subclass the cells and put UILabels (for noneditable), or UITextView (for editable) as nessessary to create the column layout you want. I've done this and it works good. Just make sure you subclass the cell and don't try to add the label or textView to the cell on every call for cellAtIndexPath. That will sevearly reduce performance.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜