How do I (easily) delete a constraint in Interface Builder in Xcode 6

前端 未结 6 1078
栀梦
栀梦 2021-02-06 21:20

Assume you\'ve selected an object and you have the Size Selector in the Utilities panel open. You can see the list of constraints applied to the object. In the list of constrain

6条回答
  •  离开以前
    2021-02-06 21:47

    The accepted answer is right, but there is so much frustration with selecting constraints that lay outside of selected view that I decided to add this tips as another answer.

    I found incredible list of tips that helped me to solve this problem.

    The problem:

    1. You select the view and Xcode shows related constraints.
    2. You try to choose the one that is outside of selected view.
    3. You fail (end with selecting the view beneath the constraint)

    enter image description here

    Soulution:

    Click it with Shift+Ctrl pressed and you'll see a menu of all the views that exist where you've clicked.

    To delete selected constraint press delete key.

    enter image description here

提交回复
热议问题