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

in one of my controllers toolbar coming only with "Done"button without "<" and ">" buttons . #179

Closed
NiteshKumarPal opened this issue Mar 17, 2015 · 5 comments
Labels

Comments

@NiteshKumarPal
Copy link

This library working fine but in one controller where 1st text field is decimal keyboard type.Toolbar which is attached with next, previous and done button not appearing with next and previous button in that controller

@NiteshKumarPal NiteshKumarPal changed the title in one of my controllers toolbar coming only with "Done" without "<" and ">" buttons . in one of my controllers toolbar coming only with "Done"button without "<" and ">" buttons . Mar 17, 2015
@hackiftekhar
Copy link
Owner

Please make sure you added all textField on same UIView. If textFields
are on different UIView the IQKeyboardManager handles them separately.

On Tuesday, March 17, 2015, NiteshKumar-webonise notifications@github.com
wrote:


Reply to this email directly or view it on GitHub
#179.

Sent from My iPhone

@NiteshKumarPal
Copy link
Author

Yes you are right, i just noticed this. Thanks for the answer .

hackiftekhar added a commit that referenced this issue Mar 22, 2015
…139 and enabling toolbar previous/next for CustomView #154, #179.
@sergii-frost
Copy link

@hackiftekhar sorry for asking in closed issue, I just do not want to bring this discussion in a new issue, as this is just possibly enhancement / clarification.
Is there any possibility to have textfields in separate view within same controller, but add those which are needed to be "tracked" together to a separate IBOutletCollection which will be tracked by IQKeyboardManager ? I am currently having each UITextField in a wrapper like:

|_Controller View
|__ UIView( for 1px custom border)
|___UIView(for textfield background)
|____UITextField self
...
|__ UIView( for 1px custom border)
|___UIView(for textfield background)
|____UITextField self

screenshot 2015-06-24 13 38 57

screenshot 2015-06-24 13 38 49

I am not sure if subclassing such a view-in-view-in-view will work for me, as it has 2 layers.
That's why I was thinking of adding only these 3 fields to an IBOutletCollection and then keep an eye of it.
Otherwise I do not have < and > buttons.

@hackiftekhar
Copy link
Owner

Surely you can do, take a look at -(void)considerToolbarPreviousNextInViewClass:(Class)toolbarPreviousNextConsideredClass; method example at repository demo project.

@sergii-frost
Copy link

@hackiftekhar thank you for quick response! With example I got how it should work.
Actually I've managed to do this with just creating UIView subclass and considering it with this method.
After that I made main view on UIViewController to be of this class (from storyboard) and did not need to create separate view in storyboard and add all my subviews with constraints to it. It works, thanks!

hackiftekhar added a commit that referenced this issue Jul 12, 2016
…139 and enabling toolbar previous/next for CustomView #154, #179.

Former-commit-id: bda4c62
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

3 participants