views:

451

answers:

1

I want to change the image of button on click. click once 1 image should be set on he button and when again clicked the 2nd image should be there and these images should switch on click.

+7  A: 
André Hoffmann
“If you want to use a custom image you will have to do it programatically …” Not necessarily. `imageNamed:` finds images in loaded bundles as well, so as long as the image is in such a bundle (such as the main bundle), you can still put its name in one of those fields in IB and it'll work just fine.
Peter Hosey