gpt4 book ai didi

iOS 8 Xcode 6 : What's the point of the grayed out constraints?

转载 作者:IT王子 更新时间:2023-10-29 08:01:17 26 4
gpt4 key购买 nike

在 Xcode 6 beta 中,当我删除一个约束时,它并没有完全删除它,而是将其灰显。我认为那是在暗示约束被用于不同的大小类,但事实似乎并非如此。另外,如何永久删除这些约束?

最佳答案

有几种方法可以从 Storyboard 中删除约束

  1. 尽量不要从 Storyboard 对象中删除,因为有时不同的约束会叠加在一起,您可能会删除错误的约束。所以,最好从Document Outline中删除。只需在 Document Outline 上突出显示您要删除的约束,然后按键盘上的 delete 按钮即可。请参见下面的屏幕截图: enter image description here

  2. 如果您想清除选定 View 的所有约束,请选择 View (例如:A 按钮),点击第三个按钮(解决自动布局问题按钮),点击明确的约束enter image description here

  3. 如果您想清除 View Controller 内所有 View 的所有约束,请突出显示 Storyboard内的右侧 View Controller 对象,点击第三个按钮(解决自动布局问题按钮),点击“ View Controller 中的所有 View ”下的清除约束

关于iOS 8 Xcode 6 : What's the point of the grayed out constraints?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25633240/

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