如何向 iPhone OS 发送触摸事件?
我正在编写一个在越狱 iPhone 上在后台运行的应用程序。我需要将触摸事件发送到 iPhone OS 来模拟手指触摸。这可能吗?
Im writing an app running in background on a jailbreak iphone. I need to send touch event to iPhone OS to simulate finger touches. Is this possible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
请参阅 Matt Gallagher 的文章 “在 iPhone 上合成触摸事件”< /a>.您还可以查看 Three20 框架,我相信使用合成触摸事件来测试 UI 元素(导致最近出现一系列申请被拒绝< /a> 由于使用私有 API)。
See Matt Gallagher's article "Synthesizing a touch event on the iPhone". You may also check out the Three20 framework, which I believe used synthesized touch events to test UI elements (leading to a rash of recent application rejections due to the use of private APIs).
是的,使用 GSEvents 是可能的。尝试 KennyTM 的私有框架和 GSEvent.h。它位于 GraphicServices 框架下。
https://github.com/kennytm/iphone-private-frameworks
Yes it is possible, using GSEvents. Try the KennyTM's private framework and GSEvent.h. It is under the GraphicServices framework.
https://github.com/kennytm/iphone-private-frameworks