Remove autolayout (constraints) in Interface Builder

59,649

Solution 1

Go to the File inspector in interface builder, and untick "Use Auto Layout".

Solution 2

enter image description here

Go to the file inspector and uncheck the option 'Use Autolayout' below Document versioning.

Share:
59,649
Olof
Author by

Olof

Updated on September 17, 2021

Comments

  • Olof
    Olof over 2 years

    I'm trying to make my project compatible with Snow Leopard and I am not able to remove the autolayout in the nibs using Interface builder (XCode 4.3 on Lion).

    Is it possible to remove the constraints and the autolayout in a nib on XCode?

  • Nick
    Nick over 11 years
    This works just as well to maintain compatibility for pre-iOS 6 devices using interface builder. Thanks!
  • DrArt
    DrArt over 11 years
    I had to remove the "Use Auto Layout" to enable affine transformations working on an UIView inherited object. Thanks!
  • rjobidon
    rjobidon over 11 years
    +1 Great! The File inspector is the first tab on right inspector. You have File, Quick Help, Identity, Attributes, Size and Connections.
  • JanB
    JanB almost 11 years
    I found that by also removing 'Autoresize subviews' helped me with my sizing and positioning of objects.
  • Can Poyrazoğlu
    Can Poyrazoğlu almost 11 years
    autoresize subviews is great if you DO want to work with constraints (which are actually useful if you get used to working with them) but don't want interface builder to override your constrainsts when you move anything.
  • Klaas
    Klaas about 10 years
    A picture tells more than 1000 words!
  • mins
    mins about 9 years
    Yes, the picture is better than the text in the selected answer, but this is the same solution, and it is posted more than a year later. Too bad that the two answers are not merged and the rep points shared :-)