dandan
dandan

Reputation: 509

Set UIButton image in interface builder / storyboard

I have a View Controller which I add a round rect button to in storyboard. The application is working well and I also connected the button to a segue using the storyboard. I am trying to set a custom image for this button for it on&off states. How do i access this button and set it's properties? (in this case the on & off images)

Upvotes: 16

Views: 17566

Answers (1)

rdurand
rdurand

Reputation: 7410

Here is a screenshot :

UIButton

Set your button type to Custom, and change the image for all the states (choose a state, then choose the image, repeat for each state).

Upvotes: 18

Related Questions