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
-1
votes
1 answer

How to Remove CAShapelayer along user touch?

This is my coding to draw a line using CAShapeLayer .no i like to remove the CAShapeLayer along user drag. UIBezierPath *path = [UIBezierPath bezierPath]; [path moveToPoint:CGPointMake(touchPoint.x,touchPoint.y)]; …
Kishore kumar
  • 143
  • 1
  • 14
-1
votes
1 answer

Get Image Position in iphone application

I like to get the position ie. xposition and yposition of an image in my code. How to extract the positions. Can some one guide me.
-1
votes
1 answer

convert uitouch dragging points to custom logic of goal selection

Right now i am working on custom control for fitness related app following is the image of control i have developed so far. the red view can be draggable vertically only from inner most circle to outer circle. i have so far managed to drag view…
P R J
  • 428
  • 5
  • 18
-1
votes
2 answers

iOS: How to Detect subview position around view

I have a Label named "Lable_Match" (in self.view) and a UIView(in self.view). In that View there are 1000+ labels. and view is move using touch move method. and When user move View and he touch end that time check view subview lable is on the…
-1
votes
1 answer

crash when using a category

I create a class category of UITouch this my code : - (id)initInView:(UIView *)view; { CGRect frame = view.frame; CGPoint centerPoint = CGPointMake(frame.size.width * 0.5f, frame.size.height * 0.5f); return [self initAtPoint:centerPoint…
Dhekra Zaied
  • 97
  • 10
-1
votes
1 answer

Get touch speed / velocity and move box2d body at this touch position

I make one box2d game and I have some problem based on touch. I desired one box2d body object moves on touch with speed / velocity. I have an Ant box2d body with revolute joint and I try to move that box2d body object with touch and speed of touch.…
DharaParekh
  • 1,730
  • 1
  • 10
  • 17
-1
votes
1 answer

Dropping UIImageView conditionally while Dragging

I am working on a game where i'm allowing user to drag and drop image(UIImageView) on the target image(UIImageView), and i'm achieving this using (CGRectIntersectsRect) in TouchesEnded. Now i need to do the same in (TouchesMoved), i already checked…
Muzafar Ali
  • 1,362
  • 1
  • 12
  • 18
-1
votes
1 answer

Detect touch on the left/right part of the screen

I want to create a game, but I need to detect if the screen was touched on the left or the right side of the screen (in landscape). How can I do that?
Robho
  • 31
  • 4
-1
votes
1 answer

How to create a resizeable view in ios?

Hi I am creating a application in which I have to create different type of stretchable views like oval , circular, octal by touching its corners. I have found some Similar question but its works only for square and only in length and width. Similar…
Nik's
  • 690
  • 1
  • 10
  • 27
-1
votes
1 answer

Detecting left or right hand using multitouch on iPhone Screen

Below figure with orange area where baby palm will be placed. All I need to know how to detect baby plam is right or left.
Paresh Navadiya
  • 38,095
  • 11
  • 81
  • 132
-1
votes
1 answer

Move the image around another image

I need to move the one image around other image where both images are in circle shape,they should not collide or overlap with each other. I tried with CGRectIntersectsRect but no use of it because of corner radius of image i.e intersect function…
Anand
  • 2,086
  • 2
  • 26
  • 44
-1
votes
1 answer

Place an image where the user touches

Basically touch screen image should appear where touched but doesn't work. -(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { UITouch *touch = [[event allTouches] anyObject]; CGPoint location = [touch…
Aptlymade
  • 1
  • 1
  • 6
-1
votes
1 answer

restart an uitouch

I've tried all morning, and start to think it's impossible. So you have a touch in your screen, it entered the response chain and maybe did something. Then you moved it on the screen it called the touchesMoved: method (of the uiResponder associated…
Flores Robles
  • 656
  • 7
  • 14
-2
votes
1 answer

How to pass a responder to ScrollView?

My view hierarchy This is the View layer I created. I want to transfer all Touch Events that happen in UIView to UIScrollView, but I don't know how. I didn't put it as a SubView of ScrollView because UIView should be lock. I want to use the default…
jkey
  • 3
  • 2
-2
votes
1 answer

Moving sprite from a group of sprites

I am having 15 sprites in my layer.i added these sprite to mutable array i want to move single sprite using ccTouchesMoved.when the touch ended ccTouchesEnded sprite move back to its starting point or its origin. My coding: if( (self=[super init]))…
Krishnan8190
  • 320
  • 2
  • 8
1 2 3
44
45