From 2f9f02dd66206edec993b3b46bcfb81cdd4e45c3 Mon Sep 17 00:00:00 2001 From: Lings Date: Thu, 26 Dec 2013 11:28:09 +0800 Subject: [PATCH] =?UTF-8?q?textView=20should=20not=20resignFirstResponder?= =?UTF-8?q?=20in=20here=EF=BC=8Csome=20times=20we=20want=20to=20stop=20inp?= =?UTF-8?q?ut=20when=20detected=20\n=E2=80=99,=20but=20don=E2=80=99t=20wan?= =?UTF-8?q?t=20to=20dismiss=20keyboard.=20=20if=20need=20to=20dismiss=20ke?= =?UTF-8?q?yboard,=20=20the=20best=20way=20is=20add=20resignFirstResponder?= =?UTF-8?q?=20in=20the=20delegate=E2=80=99s=20callback=20function.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- class/HPGrowingTextView.m | 1 - 1 file changed, 1 deletion(-) diff --git a/class/HPGrowingTextView.m b/class/HPGrowingTextView.m index 9871c6f..609b240 100644 --- a/class/HPGrowingTextView.m +++ b/class/HPGrowingTextView.m @@ -643,7 +643,6 @@ - (BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range if (![delegate performSelector:@selector(growingTextViewShouldReturn:) withObject:self]) { return YES; } else { - [textView resignFirstResponder]; return NO; } }