How to add Done button to the keyboard?

前端 未结 9 1959
南笙
南笙 2020-12-23 17:23

UPDATE:

I also tried implementing UITextViewDelegate delegate and then doing in my controller:

- (BOOL)textViewShouldEndEditing:(UITextView *)textVie         


        
9条回答
  •  无人及你
    2020-12-23 17:55

    This is best way to add Done Button on keyboard

    textField.returnKeyType = UIReturnKeyDone;
    

提交回复
热议问题