如何向iPhone OS发送触摸事件? [英] How to send a touch event to iPhone OS?

查看:138
本文介绍了如何向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?

推荐答案

见Matt Gallagher的文章在iPhone上合成触摸事件。您还可以查看 Three20框架,其中我相信使用合成触摸事件来测试UI元素(导致最近的应用程序拒绝由于使用了私有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).

这篇关于如何向iPhone OS发送触摸事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆