摘要:
在iPhone中,我们除了用touchesBegan、touchesMoved、touchesEnded、touchesCancelled这组方法来控制使用者的手指触控外,也可以用UIGestureRecognizer 的衍生类别来进行判断,该类别的好处是有自己现成的手势,开发者可以自己计算手指移动的轨迹。1、首先看下touchesBegan、touchesMoved、touchesEnded、touchesCancelled者四个方法的使用。 touchesBegan:是用户第一次接触屏幕时响应的方法。 - (void)touchesBegan:(NSSet *) touches ... 阅读全文
posted @ 2012-11-29 09:58
ssy黑桃a
阅读(4549)
评论(0)
推荐(0)
浙公网安备 33010602011771号