Skip to content

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

@MoLice

Description

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions