Questions tagged [uitouch]

UITouch is a class from UIKit framework in Apple iOS. A UITouch object represents the presence or movement of a finger on the screen for a particular event.

A UITouch object includes methods for accessing the view or window in which the touch occurred and for obtaining the location of the touch in a specific view or window. it also lets you find out when the touch occurred, whether the user tapped more than once, whether the finger is swiped (and if so, in which direction), and the phase of a touch—that is, whether it began, moved, or ended the gesture, or whether it was canceled.

A UITouch object is persistent throughout a multi-touch sequence. You should never retain an UITouch object when handling an event. If you need to keep information about a touch from one phase to another, you should copy that information from the UITouch object.

666 questions
2
votes
1 answer

Getting touch coordinates in Swift 1.2

I'm trying to get the coordinates of a touch on the screen, but every time it just gives me 0, 0. I could only find basic help with this function in the new version of Swift, and nothing on this problem. What am I doing wrong here? override func…
noizybrain
  • 155
  • 1
  • 15
2
votes
1 answer

Is there a pointer for each touch point in ios

I have been researching everywhere and can't find if there is a unique identifier for each touch point in ios. I also would like to know how to access that in swift but can't find any documentation on it.
clarkatron
  • 69
  • 7
2
votes
2 answers

Get UITouch from UIPanGestureRecognizer

Is it possible to get a UITouch object through UIPanGestureRecognizer? How could I do?
2
votes
1 answer

Is there any way other than using GSEvent to fake touch events on iOS 7 devices?

I need to fake the touch events on iOS 7 devices.I've gone through some of the resources available but could not find anything that says about iOS 7. Below is what i set out to achieve: An iOS background code running on iOS 7 device which will…
CK1984
  • 194
  • 1
  • 10
2
votes
3 answers

how to detect scroll or zoom on mapkit with touch

I create one mapkit app that in this show my location and update this location every time and set this location in center of view. I update my location and set in center with Boolean variable. I want detect scroll or zoom touch finger on my map and…
user3599133
  • 155
  • 3
  • 17
2
votes
1 answer

How can a disabled button get touches?

I was just wondering how can this happen. In my iPhone application during a http request loading I am disabling a button in the navigation bar. But when I touch the button three or four times the action method gets called after the loading is…
harshalb
  • 6,012
  • 13
  • 56
  • 92
2
votes
2 answers

How to continue to drawRect: when finger on screen

I have the current code: - (void) touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event { self.objectPoint = [[touches anyObject] locationInView:self]; float x, y; if (self.objectPoint.x > self.objectPoint.x) { x =…
Scott
  • 1,154
  • 1
  • 12
  • 25
2
votes
3 answers

How to make UIView stop receiving touch events?

I'm working on an app where the user is expected to rapidly touch and swipe across multiple UIViews, each of which is supposed to do an action once the user's finger has reached it. I've got a lot of views and so the typical thing to do, where I'd…
Tino
  • 91
  • 2
  • 8
2
votes
1 answer

how to highlight specific sentence on tap in uitextview or uiimage

I want to select specific sentence on tap.I have paragraph composed of many sentences each sentence has an index and I have to show and highlight the whole sentence(verse) when I tap on that. I have fetched the required NSString to highlight like…
2
votes
1 answer

Can I call - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event on subview

I recognize touches in my view - if certain conditions happen I would like to call my subview with this method but it isn't working - (if I don't override hittestWithEvent - this view would have been returned) How can I do it? Edit: I want the…
Avba
  • 14,822
  • 20
  • 92
  • 192
2
votes
1 answer

UITouch touch event down recognized as move

I have the following issue: If i tap the touch screen with one finger (i.e. middle finger) and close to the moment that the finger is going up i tap with a second finger (i.e. index finger) close to the area where the other finger was, instead of…
thodoris
  • 69
  • 8
2
votes
1 answer

Get all current UITouches, including ones that aren't being updated

So I'm doing custom gesture recognizing and I've ran into trouble. I need to monitor all the current touches, but touchesBegan, touchesEnded, touchesMoved and touchesCancelled all only give me the touches that they are monitoring. I need to do…
WolfLink
  • 3,308
  • 2
  • 26
  • 44
2
votes
0 answers

How to clip image on drag in ios

I have an application having functionality for image clipping. The Functionality is I have three images : Main image - set as Background Overlay image - image set on Main image Pointer image - image that will move on touch I want to remove the…
Pankti Patel
  • 296
  • 1
  • 4
  • 14
2
votes
3 answers

Custom implementation of DSLCalendarView for expedia like calendar

Ive been trying to modify the repository, https://github.com/PeteC/DSLCalendarView to allow a user to select a start and end date by tapping and automatically selecting the dates in between. I achieved this by implementing the following code in the…
ManicMonkOnMac
  • 1,476
  • 13
  • 21
2
votes
1 answer

How to detect a two finger flick

I want to switch between a couple views with a flick gesture using two fingers. If anyone can tell me what I need to do please help.
Jab
  • 26,853
  • 21
  • 75
  • 114