Adding images to buttons in interface builder

user605957 picture user605957 · Jun 13, 2011 · Viewed 21k times · Source

I want to add an image to my button instead of text. Can I do this in interface builder? Any example I can look at?

Thanks Deshawn

Answer

Peter Zhou picture Peter Zhou · May 2, 2012

1:select the button

2:select Attributes Inspector

3:change type to Custom

4:There are two ways to do this using the interface builder

-1: Make a button image->include it in your project->set the image as the "image" of the button.

-2: Make a button background image->include it in your project->set the image as the "background" of the button->set the "Title" of the button to anything you want.