点击button 发亮效果 设置

                                          

点击一个home button的时候出现以上发亮效果;

具体设置:

UIButton *homeButton = [[UIButton alloc] initWithFrame:frame];
[homeButton setImage:[UIImage imageNamed:@"home.png"] forState:UIControlStateNormal];
homeButton.showsTouchWhenHighlighted = Yes;



posted @ 2013-01-15 09:06  沙影无痕  阅读(311)  评论(0编辑  收藏  举报