开发者

How to use multi-customized UITableCell in just one UITableView

I am developing an iphone application which have a complicated view is to display stocks information with 3 sections: - Extended quote which include a chart and stock info (id, price...) - Other quote info - News (headline)

They are should be grouped and user can click on its header to expand or collapse the content.

As I know I shou开发者_运维知识库ld use UITableView with customized cells, but I just find out the way to custom all cells in a same way, but here, I need at least 3 different types.

Does anybody have experience about this please tell me what should I do?

Thanks you so much!


After searching in StackOverflow and in the internet, finally, I found the way to show multi-customized UITableCell in just one UITableView by checking the row index / section which you want to custom, create a new UIView then add it into cell content view, also, we can use this way to custom the section header and UITable header.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜