- (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手势的方法
最新推荐文章于 2024-09-11 23:25:28 发布