Reputation: 897
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?
Upvotes: 35
Views: 44058
Reputation: 65
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.
Upvotes: 1
Reputation: 766
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
Upvotes: 1
Reputation: 1933
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.
Upvotes: 2