1.解決了防止點擊小的view也觸發(fā)的問題(在大的view上有個小的view秋泄,手勢添加在大的view上面)
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch{
if ([touch.view isDescendantOfView:self.smallView]) {
return NO;
}
return YES;
}