i draged 3 button in my .xib file (btn1,btn2,btn3 respectively) and initially i given default image to them, first.png
now when user clicks on btn1, image of btn1 should
Set the images in your button call method like:
BOOL first;
-(void)firstBtnPressed
{
if(first == YES){
[btn1 setImage:[UIImage imageNamed:@"first.png"] forState:UIControlStateNormal];
[btn2 setImage:[UIImage imageNamed:@"second.png"] forState:UIControlStateNormal];
first = NO;
}
else
{
first = YES;
[btn1 setImage:[UIImage imageNamed:@"second.png"] forState:UIControlStateNormal];
[btn2 setImage:[UIImage imageNamed:@"first.png"] forState:UIControlStateNormal];
}
}