We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
切换键盘样式,会自动多生成一个此视图
使用搜狗键盘自动缩回键盘时,此视图无法恢复到原状
修改代码:
(void)colorSelectionView:(CGFloat)keyboardHeight { // for (UIView *subView in self.subviews) { // if (subView != self.doneEditBtn || subView != self.cancleEditBtn || subView != self.textView) { // continue; // }else { // [subView removeFromSuperview]; // } // }
for (UIView *view in self.subviews) { if ([view isEqual:self.cancleEditBtn] || [view isEqual:self.doneEditBtn] || [view isEqual:self.textView]) { continue; } [view removeFromSuperview]; }
添加键盘消失监听事件
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillHide:) name:UIKeyboardWillHideNotification object:nil];
//键盘即将消失
The text was updated successfully, but these errors were encountered:
@yaoyongmin 好的,感谢
Sorry, something went wrong.
No branches or pull requests
切换键盘样式,会自动多生成一个此视图
使用搜狗键盘自动缩回键盘时,此视图无法恢复到原状
修改代码:
(void)colorSelectionView:(CGFloat)keyboardHeight {
// for (UIView *subView in self.subviews) {
// if (subView != self.doneEditBtn || subView != self.cancleEditBtn || subView != self.textView) {
// continue;
// }else {
// [subView removeFromSuperview];
// }
// }
for (UIView *view in self.subviews) {
if ([view isEqual:self.cancleEditBtn] || [view isEqual:self.doneEditBtn] || [view isEqual:self.textView]) {
continue;
}
[view removeFromSuperview];
}
添加键盘消失监听事件
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillHide:) name:UIKeyboardWillHideNotification object:nil];
//键盘即将消失
[self.textView resignFirstResponder];
if (self.editTextCompleted) {
self.editTextCompleted(nil);
}
[self removeFromSuperview];
}
The text was updated successfully, but these errors were encountered: