user605957
user605957

Reputation: 2489

how do I add an image without getting the background of the UIButton class via Interface Builder?

I keep getting the white background of the UIButton class and cannot just add the image transparently

Upvotes: 0

Views: 275

Answers (2)

PengOne
PengOne

Reputation: 48398

Use UIButtonTypeCustom and set the backgroundImage of that instead.

Upvotes: 0

Deepak Danduprolu
Deepak Danduprolu

Reputation: 44633

Setting the button Type to Custom in the Interface Builder should help.

Upvotes: 3

Related Questions