答案 0 :(得分:3)
我添加了简单地使用此[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillShow) name:UIKeyboardWillShowNotification object:nil];
和
- (void)keyboardWillShow {
[self performSelector:@selector(addHideKeyboardButtonToKeyboard) withObject:nil afterDelay:0];
}
当键盘出现时调用。