Different image when button from storyboard tapped

2 Solutions Collect From Internet About “Different image when button from storyboard tapped”

You can set up different properties for different states in IB too, by selecting the state from the drop down menu:

enter image description here

If you want to do it in code, you have to set up an outlet and set the images in awakeFromNib.

@property (nonatomic, weak) IBOutlet UIButton *button;

To connect the outlet, you Ctrl-drag from the button to your File Owner (probably a view controller) and select the outlet defined above.

Then you can access the button in your code:

- (void)awakeFromNib {
    [button setBackgroundImage:[UIImage imageNamed:@"buttonDown.png"] 

Why not using outlets?

Configuring the View from Apple doc.

Hope that helps.