-
-
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
Custom function for "done" button in toolbar #475
Comments
Keyboard Return Key Handling:- If you would like to implement keyboard Return Key as Next/Done button, then you can use IQKeyboardReturnKeyHandler.(#38, #63)
@implementation ViewController
-(void)dealloc |
If you just would like to get a callback when toolbar done button is pressed then you can check If you would like to get full control over done button then you can add your own UIToolbar to textField. In this case IQKeyboardManager will not override your toolbar and you'll take care of all the responsibility of your toolbar with your methods. |
@Deepinder-Lakhi I used your code. it works in iOS 9 but not working in iOS 10. |
Try to check text field when keyboard wants hide:
|
@hackiftekhar |
It's now moved to |
This is not working for me
The action never gets called, and it I check |
Interesting... if the textField has a delegate assigned, the target doesn't work If I removed the delegate, then it works fine. Is this expected? I still need the delegate for other functionality, so it sounds like a bug... |
It is not expected. Please share demo project. |
Is there a way to add a custom function for when the "done" button is pressed in the keyboard toolbar that is a different method for when the "return" key is pressed. For example, pressing "return" would dismiss the keyboard, while pressing "done" would present a view controller.
The text was updated successfully, but these errors were encountered: