简体   繁体   English

三个Uiview彼此相邻,相等的宽度,使用全屏宽度,并且在移除一个后,其他两个会获得全屏宽度吗?

[英]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 我有三个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. 您可以将这三个视图嵌入到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.

相关问题 删除等宽约束并将其设为全宽 - Remove equal width constraint and make one to be full width Swift UIImage全屏 - Swift UIImage full width of screen 使 SwiftUI 视图嵌入在 Storyboard 视图控制器中使用全屏宽度 - Make SwiftUI View embedded in Storyboard ViewController use full Screen Width iOS-图像未水平覆盖屏幕的整个宽度 - IOS - image is not horizontally covering the full width of the screen UIPopover等屏幕宽度 - UIPopover equal screen width flutter 应用程序没有占用 ipad 屏幕的全宽? - flutter app not taking full width of ipad screen? 使用自动布局使任何视图的宽度等于屏幕宽度 - Use auto layout to have width of any view to be equal to the screen width UIView始终在模拟器中显示全屏,尽管由Interface Builder将宽度和高度设置为320 x 320 px - UIView alway show full screen in simulator although setting width and height to 320 x 320 px by Interface Builder 是否可以在分割模式下在键盘上方创建inputAccessoryView以获得整个屏幕宽度? - Is it possible to create inputAccessoryView above the keyboard for the full width of the screen in the split mode? 如何制作宽度不全屏的UINavigationController? - How can I make a UINavigationController that is not full screen in width?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM