答案 0 :(得分:0)
答案 1 :(得分:0)
将此代码添加到您的单元格班级中
override func layoutSubviews() {
// Set the width of the cell
self.bounds = CGRect(x: self.bounds.origin.x, y: self.bounds.origin.y, width: self.bounds.size.width - 40, height: self.bounds.size.height)
super.layoutSubviews()
}