Skip to content

UITextFields inside different UIViewsΒ #540

Closed

Description

@ish3lan

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

Activity

  1. ish3lan commented on Jun 24, 2016

    @ish3lan
    Author

    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.

  2. hackiftekhar commented on Jun 25, 2016

    @hackiftekhar
    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.

  3. ish3lan commented on Jun 25, 2016

    @ish3lan
    Author

    @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
  4. hackiftekhar commented on Jul 24, 2016

    @hackiftekhar
    Owner
  5. ish3lan commented on Jul 24, 2016

    @ish3lan
    Author

    @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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions