【发布时间】:2019-09-24 16:56:34
【问题描述】:
左右两侧有边距,顶部和底部有角边框。 没有什么对我有用。 我想在 TableViewController 中设置它。 我的单元格定义代码:
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "reuseIdentifier", for: indexPath) as! TableViewCell
cell.backgroundColor = colors[indexPath.row]
cell.label.text = categories[indexPath.row]
cell.selectionStyle = .none
return cell
}
有人可以帮帮我吗?
【问题讨论】:
标签: swift uitableview margins