问题
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)
回答1:
Here is a screenshot :

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).
来源:https://stackoverflow.com/questions/9539834/set-uibutton-image-in-interface-builder-storyboard