1. 程式人生 > >UITableViewCell 分割線去除左邊邊距

UITableViewCell 分割線去除左邊邊距

- (instancetype)initWithCoder:(NSCoder *)coder

{

    self = [super initWithCoder:coder];

    if (self) {

self.layoutMargins  = UIEdgeInsetsZero;

self.separatorInset = UIEdgeInsetsZero;

        [selfsetPreservesSuperviewLayoutMargins:NO];

    }

returnself;

}