Xcode:如何重新排列不自动移动到中心的元素?

发布于 2024-12-28 09:01:28 字数 134 浏览 6 评论 0原文

当我尝试重新排列 Xcode 4.2 界面生成器中的元素(将某些内容作为另一个等的子视图)时,它将元素放置在中心,而不保留其当前位置。

是否可以在 Interface Builder 中重新排列元素并保留它们在主 UIView 中的位置?

When I try to re-arrange the elements in Xcode 4.2 interface builder (put something as a subview of another etc.) it places elements in the center, not preserving it's current position.

Is it possible to re-arrange the elements in Interface Builder with preserving their position in main UIView?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

风苍溪 2025-01-04 09:01:28

按照您想要的方式重新排列元素并不完全可能。您能做的最好的事情就是选择一个或多个元素,然后选择“编辑器”>“编辑器”>“编辑器”。嵌入>看法。这会将所选元素放入新的 UIView 中,而不更改元素在屏幕上的位置。但新的 UIView 不会紧紧包裹嵌入的元素。

It's not entirely possible to rearrange elements in the way you want. The best you can do is to select one or more elements and choose Editor > Embed In > View. That will put the selected elements in a new UIView without changing the on-screen position of the elements. But the new UIView will not tightly wrap the embedded elements.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文