iPhone: Grouped Table Confusion
Posted
by senfo
on Stack Overflow
See other posts from Stack Overflow
or by senfo
Published on 2010-05-19T13:18:44Z
Indexed on
2010/05/19
13:20 UTC
Read the original article
Hit count: 415
iphone
|uitableview
I'm trying to follow along with this UITableView tutorial and I'm afraid I'm getting confused. What I hope to accomplish is to create a grouped table, which resembles the look and feel of the following image (image source):
For each "break" in the table, I assume that I need another section. I understand there is a global NSMutableArray, which acts as the data source to the UITableView. Inside this global array, there are dictionaries for sections and for data, but this is where I start getting confused.
Should I create a unique table to store each section in addition to a new table for the rows that are part of that section? In other words, if I have five sections, will I end up with ten unique collections of data (one for each section and one to store the rows related to the section), which all eventually get stored in the global array?
© Stack Overflow or respective owner