In iOS, where can I connect the selector to the keyboard, enter the button?
Greetings
Use UITextFieldDelegate -Protocol and implement:
UITextFieldDelegate
-(BOOL)textFieldShouldReturn:(UITextField *)textField
See the UITextFieldDelegate Reference .
In the textFieldShouldReturn method specified in Till, you would do
[textField resignFirstResponder];
to hide the keyboard.
Add a UITextFieldDelegate to your .h and add the following code to your .m:
-(BOOL)textFieldShouldReturn:(UITextField *)textField{ [textField resignFirstResponder]; return YES; };