Reputation: 16851
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
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