124

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?

Olof
  • 5,348
  • 4
  • 25
  • 27

2 Answers2

277

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

Aykhan Hagverdili
  • 28,141
  • 6
  • 41
  • 93
Olof
  • 5,348
  • 4
  • 25
  • 27
  • 5
    This works just as well to maintain compatibility for pre-iOS 6 devices using interface builder. Thanks! – Nick Oct 30 '12 at 17:05
  • 2
    I had to remove the "Use Auto Layout" to enable affine transformations working on an UIView inherited object. Thanks! – DrArt Nov 12 '12 at 13:02
  • 5
    +1 Great! The File inspector is the first tab on right inspector. You have File, Quick Help, Identity, Attributes, Size and Connections. – rjobidon Jan 25 '13 at 04:54
  • 3
    I found that by also removing 'Autoresize subviews' helped me with my sizing and positioning of objects. – JanB May 24 '13 at 21:04
  • 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. – Can Poyrazoğlu Jun 16 '13 at 22:39
23

enter image description here

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

GSD
  • 436
  • 3
  • 13
  • 2
    A picture tells more than 1000 words! – Klaas Mar 09 '14 at 22:39
  • 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 :-) – mins Apr 28 '15 at 21:15