iOS Set View background


Example

Objective C:

view.backgroundColor = [UIColor redColor];

Swift:

view.backgroundColor! = UIColor.redColor()

Swift 3

view.backgroundColor = UIColor.redColor