Xcode:如何重新排列不自动移动到中心的元素?
当我尝试重新排列 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
按照您想要的方式重新排列元素并不完全可能。您能做的最好的事情就是选择一个或多个元素,然后选择“编辑器”>“编辑器”>“编辑器”。嵌入>看法。这会将所选元素放入新的 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 newUIView
will not tightly wrap the embedded elements.