/// 属性
@property (nonatomic) NSUInteger minimumNumberOfTouches __TVOS_PROHIBITED; // default is 1. the minimum number of touches required to match
@property (nonatomic) NSUInteger maximumNumberOfTouches __TVOS_PROHIBITED; // default is UINT_MAX. the maximum number of touches that can be down
属性
默认值
说明
minimumNumberOfTouches
1
识别拖动手势需要的最少的手指数,少于这个数目无法识别
maximumNumberOfTouches
UINT_MAX
识别拖动手势限制的最大的手指数,超过这个数目无法识别
/// 方法
- (CGPoint)translationInView:(nullable UIView *)view; // translation in the coordinate system of the specified view
- (void)setTranslation:(CGPoint)translation inView:(nullable UIView *)view;
- (CGPoint)velocityInView:(nullable UIView *)view; // velocity of the pan in points/second in the coordinate system of the specified view