-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to handle the return button #63
Comments
Hi MacKeeper, Thanks |
Wow, thanks a lot! |
Hi, I'm kinda still wondering how to do something with last field when it's return key is hit, as I use this to send something after hitting Go or Join. Maybe event listeners would do the work? just like the ones attached to prev/next done keys |
Hi ,It doesn't work if UITextfield in a TableView. |
Added delegate method callbacks for doing something when hitting Go or Join |
@hackiftekhar |
You can set the delegate if IQReturnKeyHandler to self, implement delegate methods in self. You'll get all delegate callbacks of UITextField and UITextView on self. Then you can whatever you want by checking textfield object |
@hackiftekhar thanks for the clarification |
Hi,
The previous/next/done buttons in the toolbar works perfectly. However, there is still the return button on the bottom right corner that does not do anything useful. I would like it to behave just like the next button for most fields. I can implement
textFieldShouldReturn
to handle the return button but I will have to rewrite the logic to move to the next text field. Could you expose something likemoveNext
in theIQKeyboardManager
(basically exposingIQKeyboardManager.nextAction
).Thanks!
The text was updated successfully, but these errors were encountered: