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

Exist a way for listen done click but without change the design #492

Closed
jose920405 opened this issue Apr 20, 2016 · 10 comments
Closed

Exist a way for listen done click but without change the design #492

jose920405 opened this issue Apr 20, 2016 · 10 comments
Labels

Comments

@jose920405
Copy link

Currently the design is

screen shot 2016-04-20 at 4 43 45 pm

But when i want listen the done action. I'm using myTextfield.addDoneOnKeyboardWithTarget(self, action: "doneAction")

and the design is

screen shot 2016-04-20 at 4 43 22 pm

i want know if is possible mantain the next and preview buttons in the keyboard. Thanks.

screen shot 2016-04-20 at 4 44 31 pm

@hackiftekhar
Copy link
Owner

Please check IQUIView+IQToolbar.h, there is a method
-(void)setCustomDoneTarget:(nullable id)target action:(nullable SEL)action;

But please be sure to read document comments first.

@jose920405
Copy link
Author

@hackiftekhar

Thanks, and sorry i search but not found that method.

Works perfect.

@hackiftekhar
Copy link
Owner

Np

@Piyush08
Copy link

How to get call back for Swift?

@hackiftekhar
Copy link
Owner

There is same method in swift too.

@ChanchalW
Copy link

I can't find this method in v4.0.13. I was using v4.0.8 and I implemented that but now it shows no methods founds.

@hackiftekhar
Copy link
Owner

I know I didn't do a good versioning this time, however for your question the methods has been changed to these:-

    [textField.keyboardToolbar.previousBarButton setTarget:self action:@selector(previousAction:)];
    [textField.keyboardToolbar.nextBarButton setTarget:self action:@selector(nextAction:)];
    [textField.keyboardToolbar.doneBarButton setTarget:self action:@selector(doneAction:)];

@ChanchalW
Copy link

Thanks, @hackiftekhar I got these before your reply.

@christiygag
Copy link

I am searching for this method from the morning, in docs still this info not updated.
Finally got the method.
Thanks @hackiftekhar

@hackiftekhar
Copy link
Owner

Documentation updated! Thanks for pointing our @christiygag

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

5 participants