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
0
votes
2 answers

how to call a tapGesture IBAction from code in obiective-c

i have a view and i add tapGesture with a handle function to this view, and i want to call the tap action from code,for calling the handle function .... -(IBAction) handleTapGesture:(UIGestureRecognizer *) sender how can i do that??? now i can get…
0
votes
2 answers

iOS - UITapGesture did begin and end?

Question: I'm trying to change the background color of a view using UITapGestureRecognizer. Essentially when the user taps, I want the background to change colors, and on release or complete, the background color go back to nil, or no background…
Romes
  • 3,088
  • 5
  • 37
  • 52
0
votes
0 answers

Adding UITapGestureRecognizer to UILabel gives error that

in iOS 5.0, i try adding a UITapGestureRecognizer to a UILabel in interface builder by dragging the GestureRecognizer from objects to the label. However, in the connections inspector for the UILabel, IB shows error message that UILabel does not have…
inforeqd
  • 3,209
  • 6
  • 32
  • 46
0
votes
0 answers

Adding UITapGestureRecognizer to UIScrollViews' UIView

I'm developing a Notification Center plugin, and I'm having trouble with UITapGestureRecognizer. I have a UIScrollView, With UIViews acting as a wrapper for my two UILabels in it. The selector I attached to the UITapGestureRecognizer is never…
0
votes
2 answers

iPhone iOS UITapGestureRecognizer is it possible to initialize a recognizer with a certain touch point?

I'm using a tap gesture recognizer to position a little subview with a label within another UIView. When the user taps on a view, the label is populated with the title of the component that the user tapped on, and the subview is centered at the tap…
Alex Stone
  • 46,408
  • 55
  • 231
  • 407
0
votes
1 answer

UIImageView Tap Gesture Sensitivity

I have an ImageView object on my screen. When I tap it, it displays an info in a bubble style view. The problem is the imageview is very thin and small, it does not pick the tap gesture. Any suggestions about how to increase the sensitivity? Any…
0
votes
0 answers

UITapGestureRecognizer on a UIImageView inside an UIView only recognizes tap on small part of image

My UITapGestureRecognizer on a UIImageView inside an UIView is only recognizing the tap on a small part of the image. I use the following code: // definig inside @interface call inside .h UITapGestureRecognizer* languageSelector; // initializing…
headkit
  • 3,307
  • 4
  • 53
  • 99
0
votes
2 answers

iOS using UITapGestureRecognizer with UILabel to swipe to the next page

Sorry if I overlooked a potential answer to my question, but I'm having trouble with using the UITapGestureRecognizer with a UILabel inside a subview UIViewController class... Basically, I've created a custom UIViewController that has a UILabel and…
Bill
  • 1
  • 1
  • 5
0
votes
1 answer

UITapGestureRecognizer conflicting with each other

So I have two UITapGestureRecognizer one is for a single tap and the other one is for a double tap. However when I do a double tap, the single tap action gesture recognizer is triggered as well. Is there a way to disable this so that double tap…
xonegirlz
  • 8,889
  • 19
  • 69
  • 127
0
votes
0 answers

Get TouchEvent to the subview of my scrollview iOS SDK

Possible Duplicate: Dragging an UIView inside UIScrollView My app has a scrollview which contains progressBar and imageviews etc. Now i want to add TapGestureRecognizer only to the imageviews that are in my scroll view. i am able to add…
Steve Gear
  • 757
  • 2
  • 16
  • 44
0
votes
1 answer

hide/unhide button or outlets in Xcode using a single tap gesture

this is my first time asking for some help here although I've been lurking on this forum for the past 6 months. so here a simple one and I know its been asked like many times before but none of them comes with a simple answer that really helped.…
redribbon
  • 41
  • 1
  • 10
0
votes
1 answer

How do I get a UISwitch or UITextField to respond to a UITapGestureRecognizer without switching/going into edit mode respectively?

I have a custom UIViewController that all my ViewControllers inherit from. On this Controller I have a UITapGestureRecognizer. I also have a boolean property called inHelpMode. The idea is that when the view is in help mode, tapping a control…
-1
votes
2 answers

Can't find which view triggered the tap gesture recognizer in my custom view

I know a lot of questions are answered for the issues like this but in my case, the common answers do not work. I have a custom view which is a small view that appears above the active textfield to show the clipboard data so if the user wants that…
Ahmadreza
  • 6,950
  • 5
  • 50
  • 69
-1
votes
1 answer

Tap gesture (gesture began) not recognised in Swift

UITapGestureRecogniser began state is not recognised, only ended is recognised. override func viewDidLoad() { let tapgr = UITapGestureRecognizer(target: self, action: #selector(tapTrigger(recongizer:))) …
Ibrahim99
  • 339
  • 1
  • 3
  • 9
-1
votes
1 answer

Unable to to install "GSImageViewerController Pod" and unable to use its code in project in swift

I need tapped image in full screen for that one of the developer suggested this GSImageViewerController pod.. if i install the pod only like pod "GSImageViewerController" this and "import GSImageViewerController" in swift file in my project and like…
Swift
  • 1,074
  • 12
  • 46