Ocultar o separador UITableView por trás do contentView
Eu fiz um UITableView agrupado no iPhone OS 3.0 que se parecia com a imagem da esquerda. O resultado é a imagem certa no OS 3.1.
O imageView está sob os separadores.
Eu tentei colocar a visualização de conteúdo na frente. A propriedade separatorStyle parece ignorada quando o tableView está no estilo agrupado (para desenhar o separador eu mesmo). Alterar a cor do separador fornece resultados de strings.
Obrigado pela ajuda!
Editar: este é o código sem alteração:
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
cell.textLabel.font = [UIFont boldSystemFontOfSize:18.0];
}
cell.textLabel.text = [[metro.arretDirection objectAtIndex:indexPath.row] name];
NSString* name;
if (indexPath.row == 0) {
name = @"Begining";
}
else if (indexPath.row + 1 == [metro.arretDirection count]) {
name = @"End";
}
else {
if ([[[metro.arretDirection objectAtIndex:indexPath.row] lines] count]== 1) name = @"Little";
else name = @"Big";
}
UIImage* metroImage = [[UIImage alloc] initWithContentsOfFile:[[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:[NSString stringWithFormat:@"%i%@.png", metro.metroNumber, name]]];
cell.imageView.image = metroImage;
[metroImage release];
return cell;