Commit 82636303 cgx

修复意见反馈输入框键盘无法回收bug

1 个父辈 0cd0cab4
......@@ -73,6 +73,9 @@ static int AlbumColumnCount = 4;
}
- (BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text {
// 回车键盘消失
if ([text isEqualToString:@"\n"]) { [textView resignFirstResponder]; }
int textLength = (int)(textView.text.length - range.length + text.length);
[self dealWorldLimitAttTextWithChangeLength:textLength];
......@@ -317,6 +320,7 @@ static int AlbumColumnCount = 4;
_feedTV.dk_textColorPicker = DKColorPickerWithColors(SubTitleColor, DarkTextColor, DSWhite);
_feedTV.font = SysFont(14);
_feedTV.delegate = self;
_feedTV.returnKeyType = UIReturnKeyDone;
[_feedTV cornerRadius:12];
}
return _feedTV;
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!