gestureRecognizer

【gestureRecognizer】- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch{

如果当前触碰到的views属于[self class],那么就拦截这个触碰事件,即去响应这个事件
if([touch.view isKindOfClass:[self class]]){
return YES;
}
return NO;
}


属于UIGestureRecognizerDelegate.苹果API的私有方法,但是上线不会被拒
参考:http://blog.sina.com.cn/s/blog_59fb90df0101apn4.html

    推荐阅读