【发布时间】:2015-04-10 19:23:53
【问题描述】:
我有静态表,我为tableview -> tableView.backgroundColor = UIColor.redColor() 设置了背景颜色,当我有等时。静态表中有 3 行,然后是 tableview 彩色,3 行是白色如何修复此单元格的背景颜色?此代码不适用于静态
表 ->
override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCellWithIdentifier("Cell", forIndexPath: indexPath) as! UITableViewCell
cell.textLabel!.text = numbers[indexPath.row]
cell.backgroundColor = UIColor.greenColor()
return cell
}
【问题讨论】:
标签: static ios8 tableview xcode6.1