Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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)

like image 378
dandan Avatar asked Mar 02 '12 20:03

dandan


1 Answers

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).

like image 166
rdurand Avatar answered Sep 19 '22 19:09

rdurand