How to remove the left padding of a cell content?

2.5k Views Asked by At

I'm trying for hours to find out why there is this left margin in the custom cell. The cell only contain an imageView and a label.

     |           |
-- imageView - Label --
     |           |

I have setup constraints like this to all sides. I have made the imageView's background red. Hence the red colour indicates the padding is somehow related to the image. But I can't find anything.

in IB I have set the Separator Insets to Custom and set Left to 0.

Not sure what else I could do. Thanks for advice.

enter image description here

1

There are 1 best solutions below

0
emraz On

Try the code given below. For Swift 3

self.customTableView.separatorInset = .zero