IKImageView调整大小问题
我有一个 IKImageView 填充整个窗口。调整窗口大小时,图像不会随之调整大小。所以我自然而然地想,好吧,我将更改 windowDidResize 中的缩放系数。然而,缩放调整并不平滑,每当鼠标光标停止移动瞬间就会动画缩放。我真的希望它像 NSImageView 那样调整大小。有人有什么想法吗?
I have an IKImageView that fills the entirety of a window. When the window is resized, the image does not resize with it. So I naturally think, well I'll change the zoom factor in the windowDidResize. However, the zoom does not adjust smoothly, it animates a zoom whenever the mouse cursor stops moving for an instant. I really want it to resize like NSImageView does. Anyone got any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题已解决 - 停止使用 IKImageView 并且不再使用它,因为它的文档很少并且有错误。回到值得信赖的 NSImageView。
Problem solved - stop using IKImageView and never bother with it again because it is poorly documented and buggy. Back to the trusty NSImageView.