I have a simple tableViewCell build in interface builder. It contains a UIView which contains an image. Now, when I select the cell, the default blue selection background is
Swift 4
In your UITableViewCell class:
override func setSelected(_ selected: Bool, animated: Bool) { myView.backgroundColor = UIColor.blue } override func setHighlighted(_ highlighted: Bool, animated: Bool) { myView.backgroundColor = UIColor.blue }