Set a button background image iPhone programmatically

Viewed 107110

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?

8 Answers

In case it helps anyone setBackgroundImage didn't work for me, but setImage did

Related