Questions tagged [uilongpressgesturerecogni]

147 questions
0
votes
1 answer

How do I enable a single touch to handle both UILongPressGestureRecognizer and UIPanGestureRecognizer?

I want to implement a pan gesture ONLY after a long press has been detected. I'm monitoring the longpress gesture for "UIGestureRecognizerState.Changed", and calling my selector for handling the panning there. The selector fires (my "print()" check…
0
votes
2 answers

swift long press stops working if pressed too long

I'm seeing some weird behavior from long press gestures in swift. The minimum duration of the long press is 1 second. If I press for a smidgen over 1 second then the long press is detected. But if I press for 2 or more seconds, it is not detected.…
Marc
  • 3,386
  • 8
  • 44
  • 68
0
votes
1 answer

How to Implement a UILongPressGesture followed by Swipe gesture in ios

I am trying to implement the LongPress Gesture followed by Swipe Gesture on a Button in ios. The view would more likely to be the "Slide to Cancel" and Record feature of WhatsApp application. Currently i am not receiving swipe gesture event. I am…
0
votes
1 answer

UILongPressureRecognizer with Image view

Good morning everyone, I am a newbie Swift developer and I am facing the following problem implementing an exercise I am dealing with. I have a collection view with collection cells displaying images I have imported in XCODE; when I tap with the…
0
votes
1 answer

How to get the indexPath of a collection view cell

Right now I have a longPressGesture on my collection view cell. @IBAction func longGesture(sender: AnyObject) { if sender.state == UIGestureRecognizerState.Began { let location = sender.locationInView(sender.view) …
0
votes
1 answer

Continuous animation in iOS?

In my case I have a view with content. I want to scroll this content on UILongPressGestureRecognizer events: if the touch position y is enough near the up view border then scroll up; if the touch position y is enough near the bottom view border…
0
votes
2 answers

Don't Move Table View Cells with a Long Press Gesture on specific position

I've completely implemented the UILongGesture in my App which exchanges the cell value by drag and drop. For now I've requirement that if I move first row with last row then first row should remain at first position means don't want change the…
Neeraj Joshi
  • 721
  • 9
  • 26
0
votes
2 answers

UILongPressGestureRecognizer on UIButton

I have an UILongPressGestureRecognizer on UIButton. My gesture recogniser has minimum duration of 0.5 seconds. When I press and hold it I want it to fire every 0.5 seconds I press. How can I do it?
Nikita Zernov
  • 5,465
  • 6
  • 39
  • 70
0
votes
1 answer

UILongPressGestureRecognizer and UIPanGestureRecognizer Combined

I'm implementing both UILongPressGestureRecognizer and UIPanGestureRecognizer The UIPanGestureRecognizer should start on a drag and the UILongPressGestureRecognizer should start on a long press Unfortunately when UIPanGestureRecognizer is called…
-1
votes
1 answer

Finding longPress release Location

I'm Using LongPress on control and drag different positions in views. I found out the starting position using UIGestureRecognizerStateBegan. how do i found out the UIGestureRecognizerStateChanged position?
-1
votes
1 answer

Adding LongPressGestureRecognizer to UITableViewCell

I have a custom UITableView cell and I want to add a long press gesture recognizer to it. Currently, I'm doing it as so: longPressGesture.minimumPressDuration = 1.0 longPressGesture.addTarget(self, action: "testFeedback") …
-1
votes
2 answers

How do I keep a UILongPressGestureRecognizer active while switching from a UIViewController to another

At some point in my app, a user can move a UIView after a long press on that view. This works fine. When the view passes over a specific region, the app has to switch to another UIViewController. The moving view is attached to this new controller.…
1 2 3
9
10