【发布时间】:2016-07-10 02:12:27
【问题描述】:
鉴于以下 GitHub 项目:
https://github.com/kellyjanderson/swift-custom-menue
如何将菜单项 Custom >> Custom Action 链接到 ViewController 中的函数 customAction?
【问题讨论】:
-
您能否添加有关您编写的代码的更多详细信息
-
右键拖动。
-
@tbodt 仅在拖动到 AppDelegate 时有效。
-
需要在action函数前加上
@IBAction。
标签: swift macos cocoa nsviewcontroller