只须要在自定义的Cell中添加如下代码便可swift
override func awakeFromNib() { super.awakeFromNib() layoutMargins = UIEdgeInsets.zero }