- (NSInteger)numberOfSections {
int count = 0;
if (firstSectionArray.count) count++;
if (secondSectionArray.count) count++;
if (thirdSectionArray.count) count++;
return count;
}
- (NSInteger)numberOfRowsInSection:(NSInteger)section {
switch (section) {
case 0: return firstSectionArray.count; break;
case 1: return secondSectionArray.count; break;
case 2: return thirdSectionArray.count; break;
}
return 0;