On IOS where do i hook up a selector to the keyboards enter button?
Cheers
Use the UITextFieldDelegate
-Protocol and implement:
-(BOOL)textFieldShouldReturn:(UITextField *)textField
See the UITextFieldDelegate Reference.
In the textFieldShouldReturn method listed by Till, you would do
[textField resignFirstResponder];
to hide the keyboard.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With