changing the colour of Button
how can I 开发者_StackOverflowchange the button colour when ever I click that button please help me out
In the action which is executed, when you click the button just add the following line:
button.backgroundColor = [UIColor randomColor];
This gives the button a random color everytime you click it. ;-)
精彩评论