This is my solution. This applies to the custom cell subclass, just add them both to the subclass.
- (UIEdgeInsets)layoutMargins {
return UIEdgeInsetsMake(0, 10, 0, 10);
}
2.
self.separatorInset = UIEdgeInsetsMake(0, 10, 0, 10);
And it is convenient that you can customize the position of the separator without asking your designer to draw one for you..........