When I am setting the
tableView.separatorColor = [UIColor clearColor]
its hides the section border too.
Any idea, how can I hide all cell separator border, but the rounded border of the whole section should be there.
I have tried this, it works somehow, but do not refresh, even I call [cell setNeedsDisplay]. If I scroll then the contents redrawn.
UIView *bgView = [[UIView alloc] initWithFrame: CGRectMake(cell.frame.origin.x +10, -1,
cell.frame.size.width - 20,
cell.frame.size.height + 1)];
bgView.backgroundColor = [UIColor whiteColor];
[cell addSubview: bgView];
[cell sendSubviewToBack:bgView];
cell.clipsToBounds = NO;
[bgView release];
[cell setNeedsDisplay];
Since I had only one cell, draw my variable number of cell as UILabel in one cell. That solve the problem for now!