i want to change the button color when it is clicked. I used :
[button setBackgroundColor:[UIColor redColor]];
but this shows red color onl
UIButton *button1 = [UIButton buttonWithType:UIButtonTypeCustom]; [button1 setBackgroundColor:[UIColor redColor]];