//重写手势方法
-(BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer
shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer
*)otherGestureRecognizer
{
if ([otherGestureRecognizer.view
isKindOfClass:NSClassFromString(@"UILayoutContainerView")])
{
if (otherGestureRecognizer.state == UIGestureRecognizerStateBegan && self.contentOffset.x == 0)
{
return YES;
}
}
return NO;
}
网友评论