[英]Three Uiview next to each other ,equal width, use full screen-width and after remove one the other two gets full screen-width?
You can embed these three view to a StackView. 您可以将这三个视图嵌入到StackView中。 And set UIStackView 并设置UIStackView
Axis to horizontal 轴到水平
Alignment to fill 对齐以填充
and Distribution to FillEqually . 和分配到FillEqually 。
To remove your view just hide that view, other views will get full screen width. 要删除您的视图,只需隐藏该视图,其他视图将获得全屏宽度。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.