iOS button和tap手勢衝突 解決方案
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch
{
CGPoint location = [touch locationInView:self.view];
if(CGRectContainsPoint(button.frame, location))
{
return NO;
}
return YES;
}