如何在UIPanGestureRecognizer中启用多点触控?
当我调试UIGestureRecognizerStateChanged时,我看到多个触摸像单个手势一样被处理。我该怎么做才能分别处理多重触摸?
UIPanGestureRecognizer *panRecognizer;
panRecognizer = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(handlePanFrom:)];
panRecognizer.minimumNumberOfTouches = 1; panRecognizer.maximumNumberOfTouches = 5;
[self.view addGestureRecognizer:panRecognizer];
答案 0 :(得分:0)
答案 1 :(得分:0)
您必须使用不同的minimum = maximum = [number here]属性设置创建不同的手势识别器。