52

In Xcode 4.3 I'm not seeing the "Autoresizing" panel (with the red crosshair things) in the Attributes Size Inspector.

What I see instead are two panels, one titled "Content Hugging Priority" and the other titled "Content Compression Resistance Priority".

Other than baffling me, they seem to no effect on anything if I adjust their settings.

In projects started before 4.3 installation I still get the Autoresizing red line things, but for 4.3 created projects I am currently unable to control the location and size behavior of view controls.

1
  • This is for an OS X project, right?
    – ThomasW
    Feb 20, 2012 at 23:40

2 Answers 2

110

For Xcode 4.3 auto layout is enabled by default. To disable deselect the "use auto layout" option in the file inspector tab.

file inspector tab

https://developer.apple.com/library/content/documentation/DeveloperTools/Conceptual/WhatsNewXcode/Chapters/xcode_4_0.html#//apple_ref/doc/uid/TP40016147-SW2

4
  • 5
    @PZX OK. If this answers your question, please check it as the answer.
    – ThomasW
    Feb 21, 2012 at 0:44
  • I was searching for hours. Thank you very much.
    – JackPearse
    Apr 12, 2012 at 11:34
  • 4
    It is not obvious from the screenshot where this checkbox is (bad cropping). I have found it in File Inspector tab (the first one) on the right panel of Interface Builder. It doesn't matter what element you have selected. Apr 21, 2012 at 9:55
  • OK, the REALLY CRUMMY thing is, you have to set this on EACH of your NIB files. Can't you set that as a global default? Nov 2, 2012 at 14:14
23

In Xcode 4.5 you need to go to file inspector to uncheck the Use Autolayout, then go back to Size inspector, the good old Autosizing is back where it was. :) Don't you just hate that when then change things like that behind your back, precisely what Microsoft would do!

1
  • 2
    The file inspector is the first top level button in the right hand Utilities pane. The icon is shaped kind of like an SD card.
    – funroll
    Oct 29, 2012 at 6:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.