ios - Specify Constraints for two UIViews in percentage -
following image shows design 2 uiview. 1 in green should 20% , yellow should 80%, in land scape or portrait.
i missing on constraint or content hugging change, trying fix.
note: content hugging , compression priority has default values.
you don't want have fixed height of 212 top view. want 20% of it's super view.
- you should delete top view's height constraint of 212.
- select both top view , super view.
- add equal height constraint.
- double click on constraint , open it's size inspector.
- change multiplier 0.2
Comments
Post a Comment