Sep 22

It turns out that getting rid of those wacky new constraints you see attached to user interface elements in Interface Builder is easy. To remove auto layout constraints in Xcode 4.5, just uncheck the “Use Auto Layout” box from the File Inspector while in the Interface Builder layout. ┬áHonestly, if you’re building for iOS 6 and beyond you’re probably going to have to get used to them. ┬áTo me, this heralds the end of the days where we only had a couple of aspect ratios to design for.

5 Responses to “Remove Constraints from Interface Builder XIBs in Xcode 4.5”

  1. Will Says:

    Thank you! I hate the auto-layout constraint stuff!

  2. Ivan Says:

    Thanks… that stuff drove me mad.
    I’d be editing an element’s x or y, and the constraints list would be changing, which changed the scroll bar to show or remove, which bumped the up and down arrows I was clicking on… It’s garbage.

  3. Rod Says:

    Thanks a lot, I was getting crazy!! I hate these constraints lines…

  4. Andrew Says:

    This is a cool tip but why use IB at all when you can code the layout of objects by hand and have full control over them? Which then can be translated into other environments if you ever choose to port this code or submit it to lets say Git Hub.

  5. James Purdy Says:

    @Andrew – You use IB because you want to write, maintain, and debug less code.

Leave a Reply

preload preload preload