开发者

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. ;-)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜