Reputation: 66320
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.
Upvotes: 3
Views: 2630
Reputation: 1613
Try the code given below. For Swift 3
self.customTableView.separatorInset = .zero
Upvotes: 4