I am trying to create a sectioned table by reading in keys from an array of dictionaries. I want to read in a key for "State" (as in city and state) from each dictionary and create an array for each state. then make an array of the array of states to create the sectioned table. do i need to use a for statement and if so, can anyone provide an example. here is what i have tried so far:
Code:
self.sectionArray = [NSMutableArray array];
for (int i = 0; i < 50; i++) [self.sectionArray
addObject:[NSMutableArray array]];
// want to populate arrays using state_key
// use a string or dict?
for (NSString *string in gardenArray)
{
??????
}