要想让uibutton点击不变灰 初始化的时候就不能 UIButton *button = [[UIButton alloc]init]; 初始化的时候酱紫,可以保证button点击时不变灰 UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom]; 如果只做了上面的button不会变灰,但是图片还会变灰,下面的可以保证图片不变灰 buttomButton.adjustsImageWhenHighlighted = NO;
要想让uibutton点击不变灰 初始化的时候就不能 UIButton *button = [[UIButton alloc]init]; 初始化的时候酱紫,可以保证button点击时不变灰 UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom]; 如果只做了上面的button不会变灰,但是图片还会变灰,下面的可以保证图片不变灰 buttomButton.adjustsImageWhenHighlighted = NO;
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。