Set UIImageRenderingModeAlwaysTemplate to allow the tint change.
This commit is contained in:
parent
255cde58e6
commit
e75b0d6d9a
@ -181,7 +181,8 @@ static const CGFloat VertialShadowOffset = 6;
|
|||||||
+ (nonnull MFCustomButton *)addCloseButtonToView:(UIView *)view action:(ButtonTapBlock)actionBlock verticalCentered:(BOOL)verticalCentered {
|
+ (nonnull MFCustomButton *)addCloseButtonToView:(UIView *)view action:(ButtonTapBlock)actionBlock verticalCentered:(BOOL)verticalCentered {
|
||||||
MFCustomButton *button = [[MFCustomButton alloc] initWithFrame:CGRectZero];
|
MFCustomButton *button = [[MFCustomButton alloc] initWithFrame:CGRectZero];
|
||||||
button.translatesAutoresizingMaskIntoConstraints = NO;
|
button.translatesAutoresizingMaskIntoConstraints = NO;
|
||||||
[button setImage:[MVMCoreUIUtility imageNamed:@"closeXBlack"] forState:UIControlStateNormal];
|
UIImage *image = [[MVMCoreUIUtility imageNamed:@"closeXBlack"] imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
|
||||||
|
[button setImage:image forState:UIControlStateNormal];
|
||||||
button.titleLabel.font = [MFStyler fontForHeadlineAlternative];
|
button.titleLabel.font = [MFStyler fontForHeadlineAlternative];
|
||||||
|
|
||||||
//accessibility
|
//accessibility
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user