Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个问题...为 NSControl 寻找与 sendActionsForControlEvents(来自 iOS UIControl)类似的方法?
Mac有类似的东西吗?我需要获取有关更改自定义开关状态的信息。
谢谢!
只需为您的交换机提供 IBAction,并从 sender 参数中获取交换机的状态。