Thursday, 12 September 2013

Objective C Sectioned tableview

Objective C Sectioned tableview

I want a sectioned tableview but I don't know how, my situation:
I have 2 arrays
array Date ("12/08/13", "13/08/13", "17/08/13") array Count("2", "1", "5")
The count means how many rows are there in the section.
I have
- (NSString *)tableView:(UITableView *)tableView
titleForHeaderInSection:(NSInteger)section
{
return [dateArray objectAtIndex:section];
}
But how can make in the first section, 2 rows in the second section 1 row
and in the third section 5 rows.
I hope someone can help me. If you have questions just ask.
Thanks.

No comments:

Post a Comment