Open ihaodi opened 10 months ago
你可以试一下这个: UIImage image = [UIImage qmui_imageWithName:_name themeProvider:^UIImage _Nonnull(kindof QMUIThemeManager _Nonnull manager, __kindof NSObject _Nullable identifier, kindof NSObject * _Nullable theme) { return [identifier isEqualToString:QDThemeIdentifierDark] ? [UIImage imageNamed:[_name stringByAppendingString:@"_dark"]] : [UIImage imageNamed:[_name stringByAppendingString:@"_light"]]; }]; [mobileBtn setImage:image forState:0];
Bug 表现 UIImage imge = [UIImage qmui_imageWithName:_name themeProvider:^UIImage _Nonnull(kindof QMUIThemeManager _Nonnull manager, __kindof NSObject _Nullable identifier, kindof NSObject * _Nullable theme) {
return [UIImage imageNamed:[identifier isEqualToString:QDThemeIdentifierDark] ? [_name stringByAppendingString:@"_dark"] : [_name stringByAppendingString:@"_light"]];
}];
[mobleBtn setImage:imge forState:0];
图片未改变
预期的表现 正常情况下,应该是什么表现
其他信息