作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
尝试弄清楚如何从 swift 调用 CGEventCreateScrollWheelEvent
。
看起来它已从文档中删除:
没有说明用什么来替换它。有人知道创建滚轮事件的另一种方法吗?
最佳答案
根据 Swift 开发人员的说法,C variadic functions are not compatible with Swift variadics ,所以你将无法直接调用它。此时唯一的解决方法是用 C 或 Obj-C 编写一个非可变参数包装器,并从 Swift 中调用它。
关于swift - CGEventCreateScrollWheelEvent 快速,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24252697/
尝试弄清楚如何从 swift 调用 CGEventCreateScrollWheelEvent。 看起来它已从文档中删除: 旧文档:https://developer.apple.com/librar
我是一名优秀的程序员,十分优秀!