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

iphone:How to redo/undo while drawing through free hand

Actually i got few samples for drawing image through free hand and i integrated as well in my application.I need additional functionalities such as undo/redo.How can i achieve this?Need help on this..I used following code. -…
vinay
  • 1,276
  • 3
  • 20
  • 34
-3
votes
2 answers

Add a uiimageview inside a uiview when touching the uivew

What I want to do is when I touch the UIView, I want to add an image at the touched location. This is my code I have for the moment. (I have tried to replace x and y with touchLocation in the CGRectMake, but that doesn't work). Edited After clean…
user3266053
  • 175
  • 1
  • 1
  • 10
-3
votes
1 answer

How can we get finger thinkness on touch in ios

I have an application in which I want to detect the thickness of the finger touched with. Or is there any way we can get whether the user has changed who was using the app ? Please suggest!!
-3
votes
1 answer

What API is Orphion using?

Orphion is an iOS app that uses a "private API" that enables the application to sense how much of each finger is touching the screen. What is the API Bastus Trump used for Orphion in order to do this? Couldn't we all take advantage of this API for…
Wray Bowling
  • 2,346
  • 2
  • 16
  • 19
-4
votes
1 answer

Confused about ios touches code

-(void)ccTouchesBegan... UITouch* touch = [touches anyObject]; CGPoint location = [touch locationInView:[touch view]]; Can someone please explain in detail what exactly is going on in these two lines of code. Thanks
-5
votes
2 answers

how to get a value from NSSet?

I have printed an NSSet like below touch : phase: Began tap count: 1 window: > view:
Nithin M Keloth
  • 1,595
  • 1
  • 20
  • 37
1 2 3
44
45