Skip to content

Commit ae84272

Browse files
committed
fixed updating highlighted style when setting button text color
1 parent 368a09a commit ae84272

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

SIAlertView/SIAlertView.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,6 +1008,7 @@ -(void)setColor:(UIColor *)color toButtonsOfType:(SIAlertViewButtonType)type {
10081008
if(item.type == type) {
10091009
UIButton *button = self.buttons[i];
10101010
[button setTitleColor:color forState:UIControlStateNormal];
1011+
[button setTitleColor:[color colorWithAlphaComponent:0.8] forState:UIControlStateHighlighted];
10111012
}
10121013
}
10131014
}

0 commit comments

Comments
 (0)