简体   繁体   English

以编程方式实现UITouches手势

[英]Implement UITouches Gesture programmatically

Implement UITouches Gesture grammatically: 语法实现UITouches手势:

I want to implement touches gesture by xcode itself, I looked iOS create touch event programmatically but there is no answer. 我想通过xcode本身实现触摸手势,我看着iOS以编程方式创建触摸事件,但没有答案。

If I am searching any wrong thing please let me know. 如果我搜索任何错误的东西,请告诉我。

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. 在iPhone上合成触摸事件并不容易:您必须使用未公开的API,因此您很有可能中断每次iOS更新并遭到Apple拒绝。

Here's a link that demonstrates how to synthesize a touch event on the iPhone: 这是一个演示如何在iPhone上合成触摸事件的链接

Here's another question on StackOverflow: How to send a touch event to iPhone OS? 这是关于StackOverflow的另一个问题: 如何将触摸事件发送到iPhone OS?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM