【问题标题】:How do I change colour of tableViewCell? [closed]如何更改 tableViewCell 的颜色? [关闭]
【发布时间】:2017-03-09 19:34:44
【问题描述】:

我需要将单元格的白色更改为我的自定义颜色 Here is the supported image

【问题讨论】:

标签: ios uitableview


【解决方案1】:
Cell.contentView.backgroundColor = UIColor.redColor() // Your Color

【讨论】:

  • 将它添加到我的 ViewDidLoad() 中?
  • 在这个方法中没有:func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell { }
  • 你实现了 tableview 委托和数据源方法吗?
  • 有没有办法改变字体系列和字体颜色?
  • 是的,像这样:cell.textLabel.font = UIFont(name:"Avenir", size:22)
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2015-09-24
  • 2021-04-03
  • 2015-11-22
  • 2013-10-06
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多