gpt4 book ai didi

ios - 自动布局 UITextfield

转载 作者:行者123 更新时间:2023-12-01 19:44:01 25 4
gpt4 key购买 nike

我一直在尝试在自动布局中实现以下布局
我想实现这个

enter image description here

可能是我做错了什么,因为我得到了以下结果。我明白了

enter image description here

谁能纠正我?

最佳答案

这种布局很容易通过使用 UIStackView 完成,请在 Storyboard或代码中使用 UIStackView。

Please check Apple documentation on it https://developer.apple.com/documentation/uikit/uistackview?changes=_6



enter image description here

关于ios - 自动布局 UITextfield,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50677891/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com