Hi guys,
I've got a situation, where i have to add sections to a tableview.
An NSMutableArray is having objects with anNSInteger Type and NSString title.
Code:
ExOb *eob = (ExOb *)[appDelegate.ExArray objectAtIndex:indexPath.row];
want i want to do is,
if (eob.Type == 1){
//add to indexpath.section 1
} else if (eob.Type == 2){
//add to section 2
}
else if (eob.Type == 1){
//add to section 3
}
however, i can actually implement this cuz i simply dont kno how to.
and also, to return the exact number of rows where eob.type==1.. etc
Most examples have arrays for each sections.
any suggestions would be great