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

UITextFields inside different UIViews #540

Closed
ish3lan opened this issue Jun 24, 2016 · 5 comments
Closed

UITextFields inside different UIViews #540

ish3lan opened this issue Jun 24, 2016 · 5 comments
Labels

Comments

@ish3lan
Copy link

ish3lan commented Jun 24, 2016

I have 5 text fields in my ViewController, each is inside a UIView along with a label.

screen shot 2016-06-24 at 11 36 28 pm

How can I manage to have the functionality working? now it deals with each view (the container of UILabel and UITextField) as a separate thing, I want it to deal with all textViews in a UIViewController as if they were subviews of the outer UIView

@ish3lan
Copy link
Author

ish3lan commented Jun 24, 2016

I was able to solve this by building the constraints from the bottom of the ViewController, I had an upper constraint between the first View(container) and the outer View, this constraint was making the trouble

BUT I still have the problem of defining what is the next TextField, each being in a separated View makes me unable to move from one to another.

@hackiftekhar
Copy link
Owner

Previous next button only works with textField siblings, by default it will not work if your text Fields are in different views. But there is a workaround and you can take a look at IQPreviousNextView in demo project. Hope this help.

@ish3lan
Copy link
Author

ish3lan commented Jun 25, 2016

@hackiftekhar I am sorry to say this, I could not understand how this is supposed to be done,

What I have done?

  1. search for IQPreviousNextView in the demo app,
  2. What I figured out was { I have IQPreviousNextView that will be switched on and off, but not sure how to use it to solve my problem}
    Your help is really appreciated
    Thank you

@hackiftekhar
Copy link
Owner

@ish3lan I'm updating doc here https://github.com/hackiftekhar/IQKeyboardManager/blob/master/MANUAL%20MANAGEMENT.md please take a look

@ish3lan
Copy link
Author

ish3lan commented Jul 24, 2016

@hackiftekhar Thank you for the neat solution, it works absolutely fine now 👍🏻

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

2 participants