Instead of adding a dividing line as a preview, use the default value that has the table view and change the borderColor through the cell's backgroundView layer.
cell.backgroundView.layer.borderColor = [UIColor blueColor];
#import <QuartzCore/QuartzCore.h> , obviously.
Also, if you are using a grouped table view, make sure it matches the outer border:
tableView.separatorColor = [UIColor blueColor];
Make sure the separator line is back again, of course :) (Therefore, do not set the tableView separatorStyle property to none: tableView.separatorStyle = UITableViewCellSeparatorStyleNone )
source share