Questions tagged [uilongpressgesturerecogni]

147 questions
0
votes
1 answer

How to initiate a gesture recognizer when a gesture is already active?

I have a Subview A(self.thumbnailImageView) added to my superview. I have added a UILongPressGestureRecognizer and UISwipeGestureRecognizer to my subview A. [self addLongPressGestureRecognizerForPreviewCell:self.thumbnailImageView]; [self…
0
votes
1 answer

UICollectionView with gesture recogniser

I have a UICollectionView which has a long press gesture attached to it. It works fine when i'm pressing on a cell but if the touched area isn't a cell the app crashes with EXC_BREAKPOINT It crashes on the if let indexPath : NSIndexPath =…
0
votes
1 answer

xcode - UILongPressGestureRecognizer not work on hide element of scroll

I have a subview of a scrollView where there are some images. That images have the UILongPressGestureRecognizer property. Opening the view, there are some images visibles and others that are not visibles. To show them, scroll is needed. The…
0
votes
1 answer

Replicate iOS's dashboard app button, a button with a long press gesture recognizer

I've been trying to replicate the button on the iPhone dashboard, the Home screen. What I'm trying to achieve is the following : A simple button, with an image and all its UIButton properties. On top of it, a long press gesture recognizer. On the…
Gil Sand
  • 5,802
  • 5
  • 36
  • 78
0
votes
2 answers

UILongPressGesture gets called twice

So when ever I long press on a button, it recognizes the long press, but "test" gets called twice. How do I prevent that from happening? @IBOutlet weak var button2: UIButton! func longPressMe(){ print("test") } func longPressGes(){ let…
0
votes
1 answer

Transitioning view in TabBarController interrupts touchesMoved

I seem to be having some trouble with the following setup: I have a subclass of a UILongPressGestureRecognizer (import UIKit.UIGestureRecognizerSubclass) in order to override touchesMoved. I have a button that contains an object of…
Acoop
  • 2,586
  • 2
  • 23
  • 39
0
votes
2 answers

How to move the particular UIImageview to top of the view?

I am creating UIImageview on button click . This is my code : _imgfull.userInteractionEnabled=YES; _imgfull.clipsToBounds = YES; //this all for image positioned imgpositioned=[[UIImageView…
0
votes
4 answers

OnItemLongClickListener() doesn't result in log tap gesture in ListFragment

Long tap gesture not working in ListFragment in combination with AdapterView.OnItemLongClickListener. I'm trying to achieve the GMail like long-tap selection and continuous selection on upcoming single taps. The ListFragment declared as…
0
votes
1 answer

ios swipe after longpress is ended, without lifting the finger

I want to implement back navigation, using longpress and swipe to the left, without lifting the finger, but the swipe gesture isn't recognised, if I don't lift the finger after the longpress. I also implemented the following delegate method, but the…
0
votes
1 answer

How to detect two buttons long press gesture together in iOS?

I have two buttons in my app.I want to detect the gesture when both buttons are hold together for at least 3 seconds. I know can detect single button long press gesture but i want to call a single function when both the buttons are pressed & hold…
TechChain
  • 8,404
  • 29
  • 103
  • 228
0
votes
1 answer

Adding image or text for UILongPressGestureRecognizer in Swift?

So, some of my users don't realize they can hold a cell to get an alert pop-up with options. So, I would like to add some kind of image or text or color - something - to let the user know "hey, you can hold this to get more info." Here is my code…
Michael Sebastian
  • 785
  • 3
  • 15
  • 33
0
votes
0 answers

Drag and Drop cells with UILongPressGestureRecognizer in UITableView

I am working on an app with a tableView in a ViewController. In this tableView I have sections and rows and I want my user to be able to long press, drag and drop cells in between sections with UILongPressGestureRecognizer. With the following code…
0
votes
2 answers

How to call another controller on long press of UITableViewCell in swift?

I am using the below code to display MyEditViewController but all the field outlets in MyEditViewController are nil because of this line let editController = MyEditViewController(). Here I am creating new instance. So outlets are nil now. Is there…
Satheshkumar
  • 232
  • 2
  • 12
0
votes
1 answer

UILongPressGestureRecognizer iOS for continuous action

I have a button, and I want to "press down and hold" the button so it will keep printing "Long Press" until I release the key press. I have this in the ViewDidLoad: [self.btn addTarget:self action:@selector(longPress:)…
Cathy Oun
  • 315
  • 2
  • 11
0
votes
2 answers

error add image in the cell with UILongPressGestureRecognizer

I have a tap and hold the event in the list (UITableView) of my application: ViewDidLoad PlayerViewController.m: UILongPressGestureRecognizer *agendarProg = [[UILongPressGestureRecognizer alloc] initWithTarget:self…
1 2 3
9
10