Alright, so my goal is that when the keyboard Done button is tapped after introducing something in a UITextField
, it should trigger one of my actions but not dismiss the keyboard.
Right now, I've connected the UITextField
with my action through the Did End on Exit event and each time I tap the Done button when I'm finished typing, the keyboard goes away.
Let me know if you need further clarification.
Try setting textField.delegate = self
in code, as well as conforming to the UITextFieldDelegate
protocol. Then implement this method:
- (BOOL)textFieldShouldReturn:(UITextField *)textField {
// Do something
}
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