Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Build a Simple iPhone App with Swift Improving Our User Interface Implementing Auto Layout

Ludwing Najera
Ludwing Najera
4,596 Points

How to delete Constraints?

how do i select and delete constraints in xcode 6.1

1 Answer

Chris Shaw
Chris Shaw
26,676 Points

Hi Ludwing,

You can delete constraints two ways.

  1. The first is by selecting the constraint on the storyboard, i.e. the blue/orange lines
  2. the second way is through the size inspector, simply click on a constraint and delete it

Personally I prefer to delete them via the size inspector are you can more accurately trace them, see the below example for reference.

Size inspector showing constraints