点击button 发亮效果 设置

来源:互联网 发布:netstat查看指定端口 编辑:程序博客网 时间:2024/06/02 23:47

                                          

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

具体设置:

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



原创粉丝点击