I need to change the white colour of cells to my custom color Here is the supported image
Asked
Active
Viewed 30 times
-4
-
1Possible duplicate of [How to customize the background color of a UITableViewCell?](http://stackoverflow.com/questions/281515/how-to-customize-the-background-color-of-a-uitableviewcell) – keithbhunter Mar 09 '17 at 20:58
1 Answers
0
Cell.contentView.backgroundColor = UIColor.redColor() // Your Color

Hemant Solanki
- 894
- 10
- 24
-
1
-
Nope in this method : func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell { } – Hemant Solanki Mar 09 '17 at 19:55
-
Did you implemented tableview delegate and datasource methods ? – Hemant Solanki Mar 09 '17 at 19:56
-
1
-
Yup,Like this : cell.textLabel.font = UIFont(name:"Avenir", size:22) – Hemant Solanki Mar 09 '17 at 21:38