聽起來很簡單.. 按住觸控板,移動手指,釋放 ..但不知何故,刷卡沒有被觸發(盤被觸發,而不是)在iOS中Pan和Swipe有什麼區別?
UISwipeGestureRecognizer *swipeGesture = [[UISwipeGestureRecognizer alloc]
initWithTarget:v action:@selector(handleSwipe:)];
swipeGesture.direction= UISwipeGestureRecognizerDirectionUp;
[v addGestureRecognizer:swipeGesture];
潘是由上面的順序,而不是認可。
UIPanGestureRecognizer *panGesture = [[UIPanGestureRecognizer alloc]
initWithTarget:v action:@selector(handlePan:)];
[v addGestureRecognizer: panGesture];
如果鍋評論,刷卡是由相同的手勢識別的。有了這個,2個問題:
- 的區別是什麼,然後鍋和輕掃之間?
- 如何模擬iPhone模擬器上的滑動?
@rickster,糾正我,如果我錯了,但刷卡使用四個方向,上,下,左,右,和平移可以是任何方向。正確 – 2012-12-10 14:47:49