在我的应用程序中,我有以下代码:
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)recognizer shouldReceiveTouch:(UITouch *)touch
{
if ([touch.view isKindOfClass:[UIScrollView class]]){
return YES;
}
else return NO;
}
在此我控制我的触摸是否在滚动视图内,但现在我想检查触摸是简单触摸还是滑动手势,有没有办法检测到它?谢谢