Illep
Illep

Reputation: 16851

On click event of a keyboard

When you click on a textfield in your iphone application, you will get the keyboard displayed. On that keyboard you will get a GO, DONE and SEARCH buttons. I need to get the On click event of these buttons.

What are they ?

Upvotes: 0

Views: 339

Answers (1)

jackslash
jackslash

Reputation: 8570

become the delegate of the text field in question and you get sent

-(BOOL)textFieldShouldReturn:(UITextField *)textField

When the user taps the return button, whatever the label on the button is. (GO, SEARCH or DONE)

Upvotes: 4

Related Questions