【发布时间】:2016-04-14 14:49:58
【问题描述】:
我是在 OS X 上使用 Storyboards 的新手,我找不到从我的 NSViewController 更改窗口大小的方法
我试过了
var window = self.view.window!
...
window.setFrame(frame, display: true, animate: animation)
【问题讨论】:
-
but it doesn't work请始终更准确。发生了什么,没有预料到的事情,或者什么也没发生?错误信息,没有错误?等等谢谢。 :) -
@EricD。问题已更新为错误。 :) 为什么会出现这个错误?
标签: xcode swift macos cocoa storyboard