In Xcode, how do you set the background of a UIButton as an image? Or, how can you set a background gradient in the UIButton?
UIButton
In one line we can set image with this code
[buttonName setBackgroundImage:[UIImage imageNamed:@"imageName"] forState:UIControlStateNormal];