Background Color
suggest changeSwift
label.backgroundColor = UIColor.redColor()
label.backgroundColor = .redColor()
Swift 3
label.backgroundColor = UIColor.red
Objective-C
label.backgroundColor = [UIColor redColor];
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents