iOS Multiple Columns in UITableView

2019-01-04 21:22发布

I have multiple rows and columns of data. But iPhone UITableView contains only single column and multiple rows. How do I display my multi column data following Apple's Human Interface Guidelines?

3条回答
Explosion°爆炸
2楼-- · 2019-01-04 21:54

If you are looking for something that looks like an Excel spreadsheet then I would recommend the MDSpreadview class. The source is available at http://mochidev.com/open. It looks pretty slick but bogs down if you have a lot of data to display.

Other than that, you should probably just create your own UITableViewCell. It's pretty easy with the new Storyboards of iOS5 and you can handle millions of cells of data.

查看更多
神经病院院长
3楼-- · 2019-01-04 21:55

You probably need to build it by your own, or use a library, like UIGridView. (I'm the creator)

You can learn the source code of UIGridView. It's really short.

查看更多
一夜七次
4楼-- · 2019-01-04 22:05

For those interested, I just updated MDSpreadView to be much faster, and it supports practically an unlimited number of rows and columns (up until CGFloat stops being accurate to the pixel) with an API very similar to UITableView. More info on my site

查看更多
登录 后发表回答