Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 4.3 not presenting Autoresizing panel in Size Inspector

Tags:

xcode

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.

like image 664
PZX Avatar asked Feb 20 '12 23:02

PZX


2 Answers

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

like image 161
ThomasW Avatar answered Nov 18 '22 00:11

ThomasW


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!

like image 23
Rich4321 Avatar answered Nov 18 '22 00:11

Rich4321