Just scroll a bit in the Attribute Inspector , you can find the Background property in the view section, which allows you to set the backgroundColor for UIButton .

If you want to programmatically set the backgroundColor buttons.
Goal C:
self.yourButton.backgroundColor = [UIColor redColor];
Swift 3 and Swift 4
self.yourButton.backgroundColor = UIColor.red
Swift 2.3 or lower
self.yourButton.backgroundColor = UIColor.redColor()
Nirav d
source share