Questions tagged [uipangesturerecognizer]

UIPanGestureRecognizer is a concrete subclass of UIGestureRecognizer that looks for panning (dragging) gestures. The user must be pressing one or more fingers on a view while they pan it. Clients implementing the action method for this gesture recognizer can ask it for the current translation and velocity of the gesture.

A panning gesture is continuous. It begins (UIGestureRecognizerStateBegan) when the minimum number of fingers allowed (minimumNumberOfTouches) has moved enough to be considered a pan. It changes (UIGestureRecognizerStateChanged) when a finger moves while at least the minimum number of fingers are pressed down. It ends (UIGestureRecognizerStateEnded) when all fingers are lifted.

Clients of this class can, in their action methods, query the UIPanGestureRecognizer object for the current translation of the gesture (translationInView:) and the velocity of the translation (velocityInView:). They can specify the view whose coordinate system should be used for the translation and velocity values. Clients may also reset the translation to a desired value.

Whole document - UIPanGestureRecognizer

1041 questions
-1
votes
1 answer

iOS - Recognize UIPanGestureRecognizer just for one UITableViewCell

I have a Clear-like UITableView which contains multiple cells. Each cell has a UIPanGestureRecognizer attached and it works as expected, but I want the table view to recognize just one pan gesture recognizer, not multiple. I tried to use the…
David Roman
  • 2,303
  • 2
  • 14
  • 16
-2
votes
1 answer

UIScreenEdgePanGestureRecognizer in Objective-C

I am learning objective-c and do not know what this code does. I understand what UIScreenEdgePanGestureRecognizer does. However, I am confused as to what this code is doing with the UIScreenEdgePanGesture. UIScreenEdgePanGestureRecognizer…
-2
votes
3 answers

Why my view can not recognize the UIPanGestureRecognizer?

When I tag the image, there is no things to show? Why?
N.nnd
  • 15
  • 8
-2
votes
2 answers

Finding the indexPath of a cell with a gesture recogniser in handler method

I have a pan gesture recogniser on a UITableViewCell which is attached to a method called didPan(sender: UIPanGestureRecognizer). How can I use this method to determine which cell in a tableView this was activated from?
Matt Spoon
  • 2,580
  • 5
  • 23
  • 40
-2
votes
1 answer

moving a UIImageView one at a time using UIPanGestureRecognizer

I have some questions about using a UIPanGestureRecognizer. Is it possible to use it in moving a UIImageView one at a time. The flow is like this. I have 2 images. image A and B. If you select image A,image B cannot be moved?. Thanks guys.
-3
votes
1 answer

I'm trying to make a card that slides while on swipe in swift

I'm having a hard time with animations and PanGestureRecognizers, I want a view that slides by dragging up or dawn with your finger. It has 4 parts 1 - 2 the height, width and bottom constraints need to be changed 2 - 3 the height is the maximum…
Octa CZO
  • 23
  • 7
1 2 3
69
70