Disable window stretching Cocoa?

流过昼夜 提交于 2019-12-03 20:48:38

问题


How do I disable the stretching of the window at the bottom right? I would have to deal with auto-sizing and all that stuff, which would be unnecessary if I simply didn't allow the user to stretch the window size.


回答1:


First you should set the maximum width/height equal to the minimum width/height in IB:

Then you can disable the resize control by unchecking "Resize" in IB:




回答2:


Select the window in Interface Builder and uncheck the "Resize" checkbox in the Attributes Inspector panel



来源:https://stackoverflow.com/questions/7734503/disable-window-stretching-cocoa

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