UIButton supports many custom buttons. In nib (or storyboards or something else), just click the button and set "Type" to "Custom" in the attribute inspector on the right side of the screen. Then, just below this, set the “Status Configuration” parameter to the value you want (default, selected, etc.) to configure, and set the “Image” attribute to the desired image.
This image must be part of the project before it appears in the Image attribute (or in the application). You can add an image to the project by simply dragging it into the file navigator on the left side of the screen.
jemmons
source share