How to send a touch event to iPhone OS?

xiaoma picture xiaoma · Nov 17, 2009 · Viewed 15k times · Source

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?

Answer

Brad Larson picture Brad Larson · Nov 17, 2009

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).