📜  swift uitableview 单元格间距 - Swift 代码示例

📅  最后修改于: 2022-03-11 15:01:00.889000             🧑  作者: Mango

代码示例1
// Inside UITableViewCell subclass
override func layoutSubviews() {    
    super.layoutSubviews()

    contentView.frame = contentView.frame.inset(by: UIEdgeInsets(top: 8, left: 8, bottom: 8, right: 8))
}