简体   繁体   中英

Three Uiview next to each other ,equal width, use full screen-width and after remove one the other two gets full screen-width?

I have three uiview

在此处输入图片说明

when i remove one the other two gets full screen width.what would i do constraints ? or any suggestion to achieve this.can anyone help me please.

You can embed these three view to a StackView. And set UIStackView

Axis to horizontal

Alignment to fill

and Distribution to FillEqually .

To remove your view just hide that view, other views will get full screen width.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM