Regroupés UITableView montre vide de l'espace lorsque l'article est vide

J'ai un groupés UITableView où toutes les sections ne peut être affichée à la fois, la table est stimulée par certaines des données que chaque enregistrement peut avoir. Mon problème, c'est que les enregistrements qui n'ont pas certaines sections présentent comme des espaces vides dans le tableau (voir photo)

le texte d'alt http://img220.imageshack.us/img220/5633/screenshot20100322at228.png

Il n'y a pas des pieds de page/en-têtes. Tout ce que j'ai manqué?

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
//Return the number of rows in the section.
return [self getRowCount:section];
}


//Customize the appearance of table view cells.
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {

static NSString *CellIdentifier = @"Cell";

UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
    cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
}

cell.textLabel.text = [NSString stringWithFormat:@"section: %d row: %d",indexPath.section,indexPath.row];
//Configure the cell...

return cell;
}

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {

    float height = 0.0;

    if([self getRowCount:indexPath.section] != 0){
        height = kDefaultRowHeight;
    }

    return height;

}
InformationsquelleAutor christo16 | 2010-03-22