IOS_UIButton去掉系统的按下高亮置灰效果

setAdjustsImageWhenHighlighted   // default is YES. if YES, image is drawn darker when highlighted(pressed)

 

_foldOrOpenButton = [UIButton buttonWithType:UIButtonTypeCustom];

[_foldOrOpenButton addTarget:self action:@selector(foldOrOpen:) forControlEvents:UIControlEventTouchUpInside];

[_foldOrOpenButton setAdjustsImageWhenHighlighted:NO];

posted on 2016-07-21 15:37  MJ_Angel  阅读(559)  评论(0编辑  收藏  举报

导航