Simulate touch on iphone

后端 未结 5 947
清酒与你
清酒与你 2020-12-05 01:29

Im trying to simulate a touch on as UIWebView, how can I programmatically fire a touch event at a certain location? (x and y coordinates) Just call touchesBegan?

Ide

5条回答
  •  借酒劲吻你
    2020-12-05 01:50

    It's not easy to synthesize a touch event on the iPhone: you have to use undisclosed API, so you have a high probability of breaking on every update of the iOS and getting rejecting from Apple.

    Here's a link that demonstrates how to synthesize a touch event on the iPhone:

    Here's another question on StackOverflow: How to send a touch event to iPhone OS?

提交回复
热议问题