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

customizing Done button #41

Closed
ihomam opened this issue Apr 2, 2014 · 5 comments
Closed

customizing Done button #41

ihomam opened this issue Apr 2, 2014 · 5 comments
Assignees

Comments

@ihomam
Copy link

ihomam commented Apr 2, 2014

Is there a way to change title of done button or put and image for the button instead of text, by accessing the button object!?

i just need to change it's name from done to hide. no need to change the functionalty

if i used IQToolbarAddition category methods like addRightButtonOnKeyboardWithText:target:action
i will add my custom button to each textfield..

just thinking of doing this to every text filed give me pain :(

@hackiftekhar
Copy link
Owner

OK, understand. For your specific project I would suggest you to follow these steps, but it's not a standard approach for any universal library:-

  1. Just search for UIBarButtonSystemItemDone. in IQKeyboardManager Library. You will find some UIBarButtonItem object creation code like this:-
    UIBarButtonItem *doneButton =[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemDone target:target action:action];
  1. Just replace them will this code:-
    UIBarButtonItem *doneButton = [[UIBarButtonItem alloc] initWithTitle:@"Hide" style:UIBarButtonItemStyleDone target:target action:action];

Thanks
Iftekhar

@ihomam
Copy link
Author

ihomam commented Apr 2, 2014

OK Great

thanx, but unfortunately i can only access the header files of the framework
maybe it's stupid but how i can access .m files in the framework, i think i can't?

after 35 sec later
I just realized that i can access the files from the demo project….. ^_^
thax Iftekhar

@ihomam ihomam closed this as completed Apr 2, 2014
@hackiftekhar
Copy link
Owner

If you want your own customization then just kickoff the framework and drag n drop the actual source file from the demo.

Thanks
Iftekhar

@WinKhantAung
Copy link

I tried to disable toolbar for specific views sth like IQKeyboardManager.sharedManager().disabledToolbarClasses(LoginViewController);.
But it response with an error message "Cannot call value of non-function type '[UIViewController.Type]'.
Any suggestion pls....

@hackiftekhar
Copy link
Owner

You have to use append method to disabledToolbarClasses, you are using this incorrectly.

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

No branches or pull requests

3 participants