I have a view that has a proportional height constraint of its superview and the multiplier is 0.09. And there is a UITableView below that view.
When I press a button I want to hide the top view completely and when I tap that button again I want to display it again.
Since it has a proportional height constraint and has a multiplier, I cannot directly change its constant. I need to create a new constraint and assign that constraint to that view. I have tried changing multiplier and assigning it, it worked and hidden the view but when I wanted to display it again and set the multiplier to 0.09 it didn't work.
Do you have any solutions?
Thanks.
.hidden = YES;
? – Cy-4AHmultiplier
is read only property. How you managed to change it? – Cy-4AHview
in aUIStackView
. When you hide the content inside aUIStackView
, it automatically shrinks, moving your table view up. – Rodrigo Morbach