最佳答案
//UITableViewCell 子类内部
override func layoutSubviews() {
super.layoutSubviews()
contentView.frame = contentView.frame.inset(by: UIEdgeInsets(top: 10, left: 10, bottom: 10, right: 10))
}
关于swift - 如何获取单元格之间的距离(上、下、左、右),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57025746/