How to dismiss keyboard for UITextView with return key?
Posted
by iPhoney
on Stack Overflow
See other posts from Stack Overflow
or by iPhoney
Published on 2009-04-01T01:48:53Z
Indexed on
2010/05/21
3:50 UTC
Read the original article
Hit count: 589
In IB's library, the introduction tells us that when the return key is pressed, the keyboard for UITextView will disappear. But actually the return key can only act as '\n'.
I can add a button and use [txtView resignFirstResponder] to hide the keyboard. But is there a way to add the action for the return key in keyboard so that I needn't add another button.
© Stack Overflow or respective owner