Simulate touch on ios7/8

2019-01-29 10:56发布

问题:

I want to simulate a touch on iOS7/8, I googled and I found that the API are changed from iOS6 to iOS 7 and I should use the IOHIDEvent (in IOKit.framework) for touch events but I didn't get a good example to start PLZ if anybody have an idea to begin give me how to do it .

回答1:

You could begin by reading this : https://developer.apple.com/library/mac/documentation/DeviceDrivers/Conceptual/IOKitFundamentals/Introduction/Introduction.html, the official documentation.
And this : http://ios-blog.co.uk/tutorials/iokit-an-introduction/ , good tutorial :)