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

后端 未结 5 880
萌比男神i
萌比男神i 2020-12-17 09:14

In the Xcode 6 betas, when I delete a constraint, it doesn\'t remove it completely, but grays it out. I thought that was to imply that the constraint was used in a different

5条回答
  •  时光说笑
    2020-12-17 09:54

    You can not delete grayed out constraints from the right hand Size Inspector (which is where I normally delete constraints because it's much easier to ascertain which view the constraints are for, it get's really confusing in the Document Outline), but you can delete the same grayed out constraints from the Document Outline on the left by selecting them and hitting the delete button.

    Example of grayed out constraint (see height):

    enter image description here

    Note: To make the Document Outline's constraints easier to digest, I first delete them from the Size Inspector, which grays them out, then delete the newly grayed out constraint from the Size Inspector. Just FYI.

提交回复
热议问题