现在的位置: 首页 > 综合 > 正文

点击button 发亮效果 设置

2017年10月31日 ⁄ 综合 ⁄ 共 233字 ⁄ 字号 评论关闭

                                          

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

具体设置:

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

抱歉!评论已关闭.