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

Commit

Permalink
use reloadInputViews to reload input view
Browse files Browse the repository at this point in the history
  • Loading branch information
YuAo committed Jun 11, 2014
1 parent 2e15b16 commit 6c4b88b
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions WUEmoticonsKeyboard/WUEmoticonsKeyboard.m
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,8 @@ @implementation WUEmoticonsKeyboard
#pragma mark - TextInput

- (void)setInputViewToView:(UIView *)view {
if (self.textInput.isFirstResponder) {
[self.textInput resignFirstResponder];
self.textInput.inputView = view;
[self.textInput becomeFirstResponder];
}else{
self.textInput.inputView = view;
}
self.textInput.inputView = view;
[self.textInput reloadInputViews];
}

- (void)attachToTextInput:(UIResponder<UITextInput> *)textInput {
Expand Down

0 comments on commit 6c4b88b

Please sign in to comment.