Questions tagged [uitapgesturerecognizer]

UITapGestureRecognizer is a concrete subclass of UIGestureRecognizer that looks for single or multiple taps.

For the gesture to be recognized, the specified number of fingers must tap the view a specified number of times.

Although taps are discrete gestures, they are discrete for each state of the gesture recognizer; thus the associated action message is sent when the gesture begins and is sent for each intermediate state until (and including) the ending state of the gesture. Code that handles tap gestures should therefore test for the state of the gesture.

Whole document - UITapGestureRecognizer

1215 questions
-1
votes
2 answers

Tap Gesture Recognizer

I am developing Camera App. I want to detect the number of taps that user has tapped. How can I get number of taps from the user. UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc]initWithTarget:self…
Chandrika Visvesh
  • 91
  • 1
  • 1
  • 10
-1
votes
1 answer

UIImageView touch function in custom `UITableViewCell`

Working with swift. got a tableView with a custom Cell. have the imageView in cell and trying work out why the tap/touch function with uiimageview doesn't work. In my cellForRowAtIndexPath var tap = UITapGestureRecognizer(target: self, action:…
user2800022
  • 65
  • 1
  • 9
-1
votes
4 answers

Action sheet is not getting dismissed on clicking outside the popup

In ios 7.0 I just want to close that action sheet whenever the user presses outside of that popover.I am showing that action sheet on button click and using this code trying to get some tap gesture on…
-1
votes
1 answer

Intercept user interaction on a webview (SWIFT)

I need to intercept user interaction on my ViewController (in Swift). My ViewController is fully covered by a webview. To intercept user touching the screen I've implemented 2 methods First method: override func touchesBegan(touches: NSSet,…
-1
votes
1 answer

UITapGestureRecognizer is nil

I have a table where a gesturerecognizer should be added to the table-header-label. This is done through following code: UITapGestureRecognizer *singleFingerTap = [[UITapGestureRecognizer alloc] initWithTarget:self …
m1h
  • 21
  • 6
-1
votes
4 answers

Tapping on a UIButton and hide KeyBoard in iOS7

I have a login screen,when all UITextField are filled user will tap on UIButton for Sign me in. If user tap on background the keyboard will be hide. But i want to hide keyBoard when user clicked on UIButton which is sign me in button.When UIButton…
-1
votes
1 answer

Drag and Drop uimageview restrict drop area

I want to implement the drag and drop functionality in my application.This is my requirement, I have 5 small images and one big image in my view controller.I need to place the small images on the big image.The big image is in particular…
-1
votes
1 answer

UITapGestureRecognizer and UIPanGestureRecognizer

I want to create and see a uiimageview when i tap the screen. Before i lift the finger, i want to move the uiimageview around the screen and the image set only when i take the finger off. Heres what i did: - (IBAction)tap:(UITapGestureRecognizer…
-1
votes
1 answer

How to make tap again ImageView to zoom out when it is already fullscreen?

I have an image view on a single page app and I set it to be fullscreen size when tap on it and it works. But I also want it to zoom out to its original size when tap on it when it is on fullscreen size. How to make it? Right now, tap it will make…
-1
votes
1 answer

UILabel tap working in simulator but not in iphone

In my ios appliation there is a label which is hidden and is displayed when button is clicked and when user taps on label it should give a alertview. For the user to interact with label i enable userinteraction enabled and number of tap gestures to…
savana
  • 221
  • 2
  • 5
-1
votes
1 answer

UITapGestureRecognizer not capturing taps... where is the "capture" code supposed to go?

I have an iPad app (XCode 4.6, Storyboards, iOS 6.2). I have a scene made up like this: UIView (subViewData - covers the right quadrant of #2, below and to the right not covering the times and names of #2- contains appointment info (cust name,…
SpokaneDude
  • 4,856
  • 13
  • 64
  • 120
-1
votes
1 answer

UITapGestureRecognizer on UITextField

I have subclassed UITableViewCell and added UITextField to that cell, for UITextField I removed all gesture recognizers (because of becoming first responder after one tap) and added UITapGestureRecognizer which called after tripple tap -…
Povilas
  • 445
  • 3
  • 17
-2
votes
1 answer

How to add parameters to a generic UITapGestureRecognizer?

The question is: how can I do to make a generic version of UITapGestureRecognizer that I could use across my app. If I don't want to pass any parameter, it is pretty straightforward: class ClickListener: UITapGestureRecognizer { var onClick :…
Mathieu Rios
  • 350
  • 1
  • 17
-2
votes
1 answer

UITapGestureRecognizer is not working when tapping on image of UIImage view

I create a log in view with func that I can pick profile pic when tap on Avatar as UIImage view, you can pick avatar from library. As the code I wrote, I am not able to trigger the tapping gesture. Please be advised on this. Thanks
-2
votes
1 answer

Making an animation to slide and hide/show an UIView(swift 5)

I want to add animation to these two views. Red UIView Green UIView My storyboard look like this From the picture I want to add an animation when click on these two views. First start with hide red UIView. Action : 1 when i click on green view i…
1 2 3
80
81