I have a UILabel in a CustomCell and I would like to paint this label with a different color each time it is added to the table view.
let myBlue = UIColor(red: 62.0/255, green: 174.0/255, blue: 206.0/255, alpha: 1.0)
let myGreen = UIColor(red: 110.0/255, green: 186.0/255, blue: 64.0/255, alpha: 1.0)
let myRed = UIColor(red: 247.0/255, green: 118.0/255, blue: 113.0/255, alpha: 1.0)
let myYellow = UIColor(red: 255.0/255, green: 190.0/255, blue: 106.0/255, alpha: 1.0)
myLabel.backgroundColor = random(myBlue, myRed, myGreen, myYellow)
Any suggestions?
Thanks