iOs8 Touch Injection programmatically

2020-02-15 12:18发布

问题:

I want to inject the touch programmatically on iOs device. I have code which works fine for < iOs7 using "GSTouchEvent" BUT not working for iOs7+.

I have also tried using IOHIDEvents but that also does not work for iOs8.

What I need is : If I call something like this: postTouch(x, y, click); It should generate the touch on iOs device screen at (x,y) position.

回答1:

May be this is what you need : https://github.com/iolate/SimulateTouch It works well for ios8.1



标签: ios ios8