How to call a method when the Done Button in the KeyBoard is Clicked?

后端 未结 2 355
生来不讨喜
生来不讨喜 2021-01-06 19:56

I want to call a method when the done button is clicked in the UITextField KeyBoard? Please Help me...

2条回答
  •  春和景丽
    2021-01-06 20:22

    See the UITextFieldDelegate Protocol reference. You probably want to implement the – textFieldShouldReturn: method in your delegate.

提交回复
热议问题