swift - 为表格单元添加左边填充

时间:2016-10-19 04:31:16

标签: swift3 tablecell

我想在表格单元格中为内容添加左边距,我写道:

if (indexPath.row == 0) {
} else {
    cell.layoutMargins = UIEdgeInsets.zero
    cell.contentView.layoutMargins.left = 50.0
}

但是,它没有用。请帮帮我!

0 个答案:

没有答案
相关问题