Hi guys,
I have an app I'm working on and I have a form with a segmented control at the top and based on the button selected on the segmented control it needs to hide certain text fields on the form.
When some of those text fields are hidden, the ones below the hidden fields need to move up and fill in the space the hidden fields left behind.
My question is is there an elegant way to do this using maybe constraints, or some property?
Or do you think it would be better to maybe dynamically load a new view based on the selection?
I haven't found much documentation suggesting how one may approach this.
I have an app I'm working on and I have a form with a segmented control at the top and based on the button selected on the segmented control it needs to hide certain text fields on the form.
When some of those text fields are hidden, the ones below the hidden fields need to move up and fill in the space the hidden fields left behind.
My question is is there an elegant way to do this using maybe constraints, or some property?
Or do you think it would be better to maybe dynamically load a new view based on the selection?
I haven't found much documentation suggesting how one may approach this.