The Autosizing property setting for NSView is missing

久未见 提交于 2020-01-01 10:54:05

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!