1,219 questions
0
votes
1
answer
116
views
How to let a UIView handle a tap gesture then have the tap gesture passed down to another UIView lying beneath?
The documentation says set:
recognizer.cancelsTouchesInVew = NO;
and add the recognizer to the top view.
I tried and it does not work.
Below is the code pattern I used:
UIView *custom_overlay_1 = [[...
0
votes
1
answer
50
views
How to not respond to didSelectRowAt when adding single and double click UITapGestureRecognizer on UITableViewCell
I added UITapGestureRecognizer for single and double clicks on UITableViewCell, and let the single click gesture be responded to when the double click gesture fails, but I don't want the tableView's ...
-1
votes
1
answer
119
views
Tap on the StackView elements nothing happens in simulator
I encountered a problem, it doesn't work. When I assign a tap to a StackView element and tap through the simulator, nothing happens. Please tell me in detail what the problem is, what I misunderstand.
...
1
vote
0
answers
103
views
Secondary click (TrackPad) and right click (mouse) don't work on Mac M1 (Designed for iPad)
In the application, we need an action (pop-up menu) to open when clicked:
Primary click on TrackPad (one finger)
Secondary click on the TrackPad (Click in bottom right/left corner or Click with two ...
0
votes
0
answers
229
views
How can I present a UIMenu from a UITapGestureRecognizer
I want to display a menu from a tap gesture on a UIView. How can I achieve this?
let privacyTap = UITapGestureRecognizer(target: self, action: #selector(self.editVisibilityPressed(sender:)))
...
0
votes
1
answer
33
views
Handling a tap of UIImage inside of UITableViewHeaderFooterView
I have a custom UITableViewHeaderFooterView which is called ProfileHeaderView. It does contain UIImageView called userImage. How can I access this userImage for adding a tap gesture.
Here's the piece ...
0
votes
2
answers
86
views
How to add "UISwipeGestureRecognizer" and "TapGestureRecognizer" in Same viewcontroller in swift
I need left swipe gesture for my viewcontroller and in the same viewcontroller i have one imageView if i click that imageView i need to use "UITapGestureRecognizer" and push to another ...
1
vote
0
answers
45
views
Why does UITapGestureRecognizer not work properly for cell images in Swift collection view?
I have added UITapGestureRecognizer for collectionview cell image like
code: with this code if i tap on two cell images then both are showing. Here if i tap on second cell image then how to remove ...
2
votes
1
answer
916
views
How to make grouped objects in one Reality Composer scene draggable?
So I have a Reality Composer file "Experience" loaded onto an XCode project with three scenes.
I have added behaviors and actions that work in XCode. The actions work perfectly, hiding and ...
0
votes
1
answer
115
views
Xamarin Forms TapGestureRecognizer not work on UWP
Edited 4/10 - see notes at the end
I have a Xamarin Forms multiplatform app using a TapGestureRecognizer to get to a details page. I have it working successfully on Android and iOS however I am now ...
0
votes
1
answer
30
views
swift UITapGestureRecognizer transfer doubleTap for another view
In my ViewController i have mapView - maps. In map, if user double tap, map zoom in.
It is default option, i did not set it up.
I add UITapGestureRecognizer, because i work with single tap. But when i ...
0
votes
1
answer
106
views
How do I add a pause after a tap gesture runs?
I am working on creating a single player game with a computer opponent and I would like to add a pause between when the human player and the computer takes their turns so it doesn´t feel so calculated....
0
votes
2
answers
208
views
Why label tapgesture not working in Swift
code: with this code edit profile showing in blue colour but tap gesture not working.. if i click on "edit profile" then the its always goes to tapLabel method's else part
always prints ...
1
vote
2
answers
485
views
Swift - UITapGestureRecognizer for parent view only
I have a UIViewController with a subview of a UIView. I add a UITapGestureRecognizer to the UIViewController to dismiss the view, but when I tap on the subview, the whole view still dismisses and I ...
1
vote
1
answer
293
views
Clickable link not displaying with programmatically created custom UITextView in swift
I want to get hyperlink in UITextView and with tap gesture I'm enabling textView.isEditable = true. But the link is not displaying in UITextView.
I have a custom TextView which I'm calling in ...
1
vote
0
answers
2k
views
How to show UIDatePicker calendar on tap gesture?
I have a UIDatePicker view that is embedded in a UIImageView. I want to create a functionality where when the UIImageView is tapped, the UIDatePicker's calendar appears on the screen. I also want the ...
0
votes
1
answer
253
views
How to open a view controller on click of hyperlink on UILabel in Objective-C
I have to open a view controller via a hyperlink on a UILabel. This only worked halfway for me. I cannot use UITextView according to my project requirement.
The following code creates a hyperlink on a ...
0
votes
1
answer
421
views
How to create extension UITapGestureRecognizerDelegate or fix overlapping view SWIFT
I create this basic tap gesture function for dismissing view and I added a delegate to override tap when the user taps on another custom sheet (container).
@objc func handleTapGesture() {
dismiss(...
1
vote
1
answer
292
views
Xamarin.Forms TapGestureRecognizer not working in IOS
I have been using TapGestureRecognizer for a while now, I had this issue from the beginning (the first time when I tested the app on an IOS device, for some reason I am having issues running a ...
0
votes
1
answer
50
views
Display screen saver when there is Inactivity in a viewcontroller
My app requires to display a screen saver after 2 min of inactivity in a viewcontroller. I have used timer with tap gesturerecognizer to achieve it and it works, but images doesnt scroll. It displays ...
1
vote
1
answer
62
views
how to safe UIView after tapped with UITapGestureRecognizer
I try to add UIView for every tap on screen, but once I tapped UIView is added, but I can't safe him on screen , he is gone when I untapped.
What should I do for safe UIView on screen and tap once to ...
0
votes
0
answers
363
views
How to make a tap gesture intercept taps slightly outside the view as well
I have some views my user can tap. The functionality has been added to my views like this:
let touchUpGesture = UITapGestureRecognizer { recognizer in
print("something")
...
0
votes
0
answers
97
views
UIGestureRecognizer override the collectionViewCell in iOS 15, Xcode 13.0
B: Transparent View with alpha 0.1 and attached Gesture recognizer, that will dismiss the view
bView.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(dismisClicked(_:))))
C: ...
0
votes
1
answer
145
views
EventHandler is null so i cant invoke on MainPage Command using Tapgesturerecognizer
I am new to deletegate so i dont know how to fix these issue Evenhandler is null and it cannot it main method once clicked here is my code
public event EventHandler<CarSchematic.PointEventArgs> ...
0
votes
3
answers
2k
views
Close a popup view when tapping anywhere outside it, including buttons, textfields, etc
Question EDITED since it seems people were confused...
See my code below and watch the attached "video" of what is happening. The popup closes:
when the user taps on a button selection ...