问题
I ran into this really frustrating issue today.
I want to set my view to be autosizing like this:
But all I find in my xcode settings for an NSView is like this:
The two screenshots are taken from two different projects with the same xcode 4.3.2. Is this a bug or am I missing something?
Thanks.
回答1:
Seaid's solution works. but i think it's bug because the auto sizing tool will apear about half a second when switching to another inspector.
Xcode 4 interface-builder problems
回答2:
Starting in Xcode 4.3 the xib files for Cocoa projects have auto layout turned on initially. When a xib file uses auto layout, there is no Autosizing section in the size inspector.
If you want to turn off auto layout, open the file inspector and deselect the Use Auto Layout checkbox.
来源:https://stackoverflow.com/questions/10759418/the-autosizing-property-setting-for-nsview-is-missing