How to add Done button to the keyboard?
问题 UPDATE: I also tried implementing UITextViewDelegate delegate and then doing in my controller: - (BOOL)textViewShouldEndEditing:(UITextView *)textView { [textView resignFirstResponder]; return YES; } I also set the delegate of the text view to be self (controller view instance). Clicking the Done button still inserts just a new line :( UPDATE: What I have done so far. I have implemented a UITextFieldDelegate by my view controller. I have connected the text view to the view controller via