Skip to content
This repository has been archived by the owner on Jul 14, 2020. It is now read-only.

Commit

Permalink
relayout when setting image for keyboard buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
YuAo committed Sep 1, 2013
1 parent 033c6d2 commit 873044f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions WUEmoticonsKeyboard/WUEmoticonsKeyboard.m
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ - (UIButton *)emoticonsKeyboardButtonOfType:(WUEmoticonsKeyboardButton)type {

- (void)setImage:(UIImage *)image forButton:(WUEmoticonsKeyboardButton)button state:(UIControlState)state {
[[self emoticonsKeyboardButtonOfType:button] setImage:image forState:state];
[self setNeedsLayout];
}

- (UIImage *)imageForButton:(WUEmoticonsKeyboardButton)button state:(UIControlState)state {
Expand All @@ -279,6 +280,7 @@ - (UIImage *)imageForButton:(WUEmoticonsKeyboardButton)button state:(UIControlSt

- (void)setBackgroundImage:(UIImage *)image forButton:(WUEmoticonsKeyboardButton)button state:(UIControlState)state {
[[self emoticonsKeyboardButtonOfType:button] setBackgroundImage:image forState:state];
[self setNeedsLayout];
}

- (UIImage *)backgroundImageForButton:(WUEmoticonsKeyboardButton)button state:(UIControlState)state {
Expand Down

0 comments on commit 873044f

Please sign in to comment.