Managing Gesture Recognizers

1 - (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer
{
CGPoint point = [gestureRecognizer locationInView:self];
if (point.x>30)//这里可以写个算法 记得去新浪面试有就是这没记住被虐了
{
return YES;
}
else
{
return NO;
}
}
2 gestureRecognizers 这个api你懂得

你可能感兴趣的:(Managing Gesture Recognizers)