i want to change the button color when it is clicked .i used [button setbackgroundcolor:[uicolor redcolor]]; but this shows red color only on the four corners of button not on the whole button and also when i use "for state:uicontrolstate...." then the application hangs . is their any way to show some color on button when clicked?
[click1 setBackgroundColor:[UIColor redColor]forState:UIControlStateHighlighted];
good answers will be rewarded