I have a UITableView
that uses a variety of custom UITableViewCells
.
I\'d like to be able to have one of these table cells appear with a di
Starting from iOS 7 something like this seems to be working fine:
UITableViewCellSeparatorStyleSingleLine
on your UITableViewcell.separatorInset = UIEdgeInsetsMake(0, 0, 0, 10000);
cell.backgroundColor = [UIColor greenColor];
Now separator will have the same color as your cell's backgroundcolor. Note that all this can be set on your cell's xib file without any code. Also note that you probably want to change cell's contentView's background color to something different than default (probably white) so green color will appear only on the separator line.