简体   繁体   English

如何查看单个UIElement的自动布局约束

[英]How do I view the auto layout constraint for a single UIElement

Using auto layouts on a view with lots of UIElements can get really messy. 在具有大量UIElement的视图上使用自动布局可能会变得非常混乱。 To make things worse, I don't know how to reorder or arrange them they way I want it to. 更糟的是,我不知道如何按照我想要的方式重新排序或安排它们。 I spend a lot of time scanning all the constraints until I find the one I need to fix. 我花了大量时间扫描所有约束,直到找到需要修复的约束为止。

Is there a view to only view the layout constraint for the UIElement that is selected? 是否只有一个视图可以查看所选UIElement的布局约束?

Select the UI element and select size inspector. 选择UI元素,然后选择大小检查器。 There it enlists constraints of that UI element only. 在那里,它仅列出该UI元素的约束。 I think that is neat already. 我认为已经很整洁了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM