禁用窗口拉伸Cocoa? [英] Disable window stretching Cocoa?
本文介绍了禁用窗口拉伸Cocoa?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何禁用窗口右下角的拉伸?我将不得不处理自动调整大小和所有的东西,如果我不允许用户拉伸窗口大小,这将是不必要的。
解决
然后您可以通过取消选中调整大小 IB:
>
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.
解决方案
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:
这篇关于禁用窗口拉伸Cocoa?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文