如何在UIPanGestureRecognizer中啓用多點觸控?UIGestureRecognizer多平移手勢
當我調試UIGestureRecognizerStateChanged我看到多個觸摸像單手勢一樣處理。我該怎麼做才能分開處理多點觸控?
UIPanGestureRecognizer *panRecognizer;
panRecognizer = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(handlePanFrom:)];
panRecognizer.minimumNumberOfTouches = 1; panRecognizer.maximumNumberOfTouches = 5;
[self.view addGestureRecognizer:panRecognizer];
我正在嘗試實現像水果忍者觸摸的東西。你如何使用多根手指和每根手指就像一把獨立的劍? –
通過不使用手勢識別器...水果忍者可能檢測到原始觸摸。 – Sulthan