Tencent / QMUI_iOS

QMUI iOS——致力于提高项目 UI 开发效率的解决方案
http://qmuiteam.com/ios
Other
7.05k stars 1.37k forks source link

QMUIButton 开启了 adjustsImageTintColorAutomatically 后修改 normal 的 image,highlighted、disabled 的 image 无法同步更新 #1352

Closed MoLice closed 2 years ago

MoLice commented 2 years ago
QMUIButton *button = QMUIButton.new;
button.adjustsImageTintColorAutomatically = YES;
button.tintColor = xxx;
[button setImage:normalImage1 forState:UIControlStateNormal];
[button setImage:normalImage2 forState:UIControlStateNormal];

如上述示例代码,图片设置为 normalImage2 后点击按钮,高亮的 image 会变成 normalImage1。

MoLice commented 2 years ago

已发布 4.4.2 修复该问题。