我有一个观点,我应用了UIPanGestureRecogniser这一观点:检测平移手势结束
UIPanGestureRecognizer *panGesture = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(panAnim:)];
[sliderView addGestureRecognizer:panGesture];
[panGesture release];
我可以检测并处理姿势就好了。不过,我希望在手势结束后启动另一种方法。
我知道有两种方法可以进行这种检测。然而,我发现touchesCancelled
只要触摸变成一个手势就会被调用,即我将我的手指移动到足以保证手势调用,并且很少(如果有的话)被调用。
我希望能够平移左/右,然后启动手势结尾时的另一个函数调用。我该怎么做呢?
队友的欢呼声!正是我需要的! –
@Daniel Hanly:很高兴知道它有助于你:) – Jhaliya