gpt4 book ai didi

iphone - Mac 自动调整 NSView 保持纵横比

转载 作者:行者123 更新时间:2023-11-29 11:18:01 25 4
gpt4 key购买 nike

我的代码可以在用户调整主窗口大小时保持其各自的宽高比。 (使用 windowWillResize 委托(delegate)方法)我有该窗口的一些 subview ,我也想保持它们自己的纵横比。我该怎么做?

最佳答案

听起来你应该先看看 -resizeWithOldSuperviewSize:, documented因此:

Informs the receiver that the bounds size of its superview has changed.

关于iphone - Mac 自动调整 NSView 保持纵横比,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8569176/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com