点击一个home button的时候出现以上发亮效果;
具体设置:
UIButton *homeButton = [[UIButton alloc] initWithFrame:frame];
[homeButton setImage:[UIImage imageNamed:@"home.png"] forState:UIControlStateNormal];
homeButton.showsTouchWhenHighlighted = Yes;
点击一个home button的时候出现以上发亮效果;
具体设置:
UIButton *homeButton = [[UIButton alloc] initWithFrame:frame];
[homeButton setImage:[UIImage imageNamed:@"home.png"] forState:UIControlStateNormal];
homeButton.showsTouchWhenHighlighted = Yes;
转载于:https://www.cnblogs.com/skyry/archive/2013/01/15/5114623.html