tags:

views:

238

answers:

0

Hi,

I have a problem, I have reviewed the various UITableview sectioned table examples but I am struggling with the data source.

I have a table of data (pre-sorted) that I cannot pre-code all the table section options for the dictionary. Rather I want to inspect the data and as a certain key value changes, create a new table section (or dictionary entry).

e.g.

for i = 0, datasource count, ++i

check if current key is different to last create new section add array object to section.

the problem i have is that all the examples have a predefined dictionary of sections, and don't create the dictionary as it goes. I guess I don't understand the dictionary object well enough to figure it out.

Does anyone have some example code that takes the same approach.