在ios7 / 8上模拟触控 [英] Simulate touch on ios7/8

查看:149
本文介绍了在ios7 / 8上模拟触控的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在iOS7 / 8上模拟触摸,我用谷歌搜索,我发现API从iOS6更改为iOS 7,我应该使用IOHIDEvent(在IOKit.framework中)进行触摸事件但是我没有得到如果有人有想法开始给我如何做,那么开始PLZ就是一个很好的例子。

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 .

推荐答案

您可以先阅读: https://developer.apple.com/library/mac/documentation/DeviceDrivers/Conceptual/IOKitFundamentals/Introduction/Introduction.html ,官方文档。

这个: http ://ios-blog.co.uk/tutorials/iokit-an-introduction/ ,好教程:)

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

这篇关于在ios7 / 8上模拟触控的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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