iPhone两指扭动手势 [英] IPhone two fingers twist gesture

查看:157
本文介绍了iPhone两指扭动手势的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当用户在两根手指上扭动图像时,我需要旋转图像. 您对我如何编写代码或以前是否完成过编码有任何想法.

I need to rotate an image when the user do a two finger twist on it. do you have an idea on how i can code this or if you've done this before.

我认为编写一个可以检测所有主要手势并提供iif的类是一个好主意.

I think it would be a good idea to write a class that detect all the main gesture and provide iif.

推荐答案

我在互联网上找到了此示例.写得很好...

I found this example on the internet. It's very nicely written...

http://www.skylarcantu.com/blog/2009/08/08/multitouchsingletouchtap-handling/

这篇关于iPhone两指扭动手势的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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