i created a button where i want to place a icon/image inside the button
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
2009-11-25 07:43:52
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
2009-12-09 04:35:34