tags:

views:

214

answers:

3

i created a button where i want to place a icon/image inside the button

A: 

you can use custom button and use any view you want for it

Morion
A: 

Have a look at these two methods in UIButton:

- (void)setImage:(UIImage *)image forState:(UIControlState)state
- (void)setBackgroundImage:(UIImage *)image forState:(UIControlState)state
Vladimir
A: 

Solution:

double click on the .xib file now select the button and click on tools->Identity inspector there it will indicate the class is inherited from UIButton below select the image option for button , Tools ->Attribute Inspector give the name for the button and also the icon name

Make sure you have included the icon in ur project

Pinky