效果图:
_inputTextView.returnKeyType = UIReturnKeySend; (如上图的send ,在真机上会显示发送二字的)
[_inputTextViewBkView addSubview:_inputTextView];
- (BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text
{
if ([text isEqualToString:@"\n"]) //获取键盘中发送事件(回车事件)
{
[self sendClick]; //处理键盘的发送事件
}
return YES;
}