вам нужно сделать массив массивов.основной массив будет представлять разделы табличного представления, а внутренние массивы будут содержимым разделов.
В numberOfSectionsInTableView
положить
return [mainArray count];
В cellForRowAtIndexPath
:
NSMutableArray *tempDict = [mainArray objectAtIndex:indexPath.section];
NSArray *tempArray = [tempDict objectAtIndex:indexPath.row];
cell.textLabel.text = [NSString stringWithFormat:@"%@", [tempArray valueForKey:@"name"]];
cell.detailTextLabel.text = [NSString stringWithFormat:@"%@", [tempArray valueForKey:@"detail"]];
return cell;
pst последний объект - это NSDictionary в моем случае, поэтому я использую valueForKey
.Удачи!