Skip to content
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 change the Toolbar's done button 's name #557

Closed
resand opened this issue Jul 7, 2016 · 8 comments
Closed

how to change the Toolbar's done button 's name #557

resand opened this issue Jul 7, 2016 · 8 comments
Labels

Comments

@resand
Copy link

resand commented Jul 7, 2016

how to change the Toolbar's done button 's name en Swift??
captura de pantalla 2016-07-07 a las 1 58 27 p m

@hackiftekhar
Copy link
Owner

There is a property exposed with IQKeyboardManager class to change Done button text.

@resand
Copy link
Author

resand commented Jul 8, 2016

look but found, as it is called property?

@hackiftekhar
Copy link
Owner

It's toolbarDoneBarButtonItemText`

@alfredolucomav
Copy link

Hi @hackiftekhar I'm trying to set done button's text but is not working. There's my code:

    [[IQKeyboardManager sharedManager] setEnable:YES];
    [IQKeyboardManager sharedManager].toolbarDoneBarButtonItemText = @"Ok";

Best Regards

@resand
Copy link
Author

resand commented Jul 30, 2019

@alfredolucomav It works for me in Swift, this is my code:

IQKeyboardManager.sharedManager().toolbarDoneBarButtonItemText = "Ok"
IQKeyboardManager.sharedManager().enable = true

Try to reverse the order of the lines, possibly when initializing the pod add the additional configuration.

@alfredolucomav
Copy link

@resand but It does not woriking on Objective-c's library. Any Suggestion?

Best Regards

@resand
Copy link
Author

resand commented Jul 31, 2019

@alfredolucomav Personally I don't know any other pod or library. You can perform your own implementation of a custom view with a general xib.

@serkanmalagic
Copy link

You can edit from pod files. Just go to 1952. line in IQKeyboardManager.m file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants