- (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer
{
CGPoint translation = [(UIPanGestureRecognizer *)gestureRecognizer translationInView:gestureRecognizer.view.superview];
NSLog(@"getpoint:%@",NSStringFromCGPoint(translation));
if (fabsf((float)translation.x) > fabsf((float)translation.y)) {
return YES;
}
return NO;
}
关于在UITableView上添加PanGesture手势的方法
最新推荐文章于 2021-12-13 11:36:08 发布