How to dismiss keyboard for UITextView with return key?
问题 Want to improve this post? Provide detailed answers to this question, including citations and an explanation of why your answer is correct. Answers without enough detail may be edited or deleted. 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