Xcode 4.3 not presenting Autoresizing panel in Size Inspector

Xcode

Xcode Problem Overview


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.

Xcode Solutions


Solution 1 - Xcode

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

Solution 2 - Xcode

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!

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionPZXView Question on Stackoverflow
Solution 1 - XcodeThomasWView Answer on Stackoverflow
Solution 2 - XcodeRich4321View Answer on Stackoverflow