只需要在自定义的Cell中添加以下代码即可

override func awakeFromNib() {
        super.awakeFromNib()
        layoutMargins = UIEdgeInsets.zero
}

相关文章: