Is there a way to remove the separator line from a single cell in UITableView?

Your best bet is probably to set the table's separatorStyle to UITableViewCellSeparatorStyleNone and manually adding/drawing a line (perhaps in tableView:cellForRowAtIndexPath:) when you want it.

Following Mike's advice, here is what I did. In tableView:cellForRowAtIndexPath: ... if (cell == nil) { cell = UITableViewCell alloc initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier autorelease; // Drawing our own separatorLine here because I need to turn it off for the // last row. I can only do that on the tableView and on on specific cells.

// The y position below has to be 1 less than the cell height to keep it from // disappearing when the tableView is scrolled. UIImageView *separatorLine = UIImageView alloc initWithFrame:CGRectMake(0.0f, cell.frame.size. Height - 1.0f, cell.frame.size.

Width, 1.0f); separatorLine. Image = UIImage imageNamed:@"grayDot" stretchableImageWithLeftCapWidth:1 topCapHeight:0; separatorLine. Tag = 4; cell.

ContentView addSubview:separatorLine; separatorLine release; } // Setup default cell setttings. ... UIImageView *separatorLine = (UIImageView *)cell viewWithTag:4; separatorLine. .. // In the cell I want to hide the line, I just hide it.SeperatorLine... In viewDidLoad: self.tableView.

SeparatorStyle = UITableViewCellSeparatorStyleNone.

I can only do that on the tableView and on on specific cells. // disappearing when the tableView is scrolled. UIImageView *separatorLine = UIImageView alloc initWithFrame:CGRectMake(0.0f, cell.frame.size.

Height - 1.0f, cell.frame.size. // Setup default cell setttings. // In the cell I want to hide the line, I just hide it.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions