Please see the attached image. In table views in iOS 7, UIKit draws a thin gray vertical line between the accessory view and the reordering control. However, when the table view is scrolled this line is not drawn in some cells. It is absent in cells 1, 2 and 8 in the attached image. Why is this? How can I fix it?
I'm having the same issue on an iphone 6s plus and solved it setting the backgroundColor of the cell's textLabel to clearColor
cell.textLabel.backgroundColor = [UIColor clearColor];
Looking at my problem with reveal showed me that the right border of the label was drawing this vertical line.
You can try this using
-(void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath;
{
cell.backgroundColor=[UIColor clearColor];
cell.backgroundView=nil;
}
this method might be helpful or something that might be in you cell like some image or what.? or you can check that using allocation of cell like this place if(cell==nil) instead if(1)and alloc cell eveytime
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With