Questions tagged [touches]

231 questions
0
votes
1 answer

UITapGestureRecognizer double click slows down release

I 've an annoying problem. I' m adding a gesture recognizer: UITapGestureRecognizer* tapGesture =[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(DoubleClick:)]; tapGesture.numberOfTapsRequired = 2; [self.view…
Michael Chourdakis
  • 10,345
  • 3
  • 42
  • 78
0
votes
2 answers

Drawing in screen with finger in UITableView

I am following this excellent small tutorial about drawing on screen in the layer of a UIView (subclass). http://spritebandits.wordpress.com/ It just works. There is just one thing. I placed this view as subview of a UITableViewCell which,…
Hermann Klecker
  • 14,039
  • 5
  • 48
  • 71
0
votes
1 answer

UIButton in a subClass of UIViewController not respond to any touches

I have met the problem some days ago,I also have searched the solutions everywhere,but none work fine.I add a button into a custom viewController(is a subClass of UIViewController),then,add the customView into myMainViewController. code like…
0
votes
2 answers

Touches method in UIViewController and UIView

I'm working on iPad app. My UIViewController contains only a custom UIView with a size of 500wx500h. I implemented the touches methods both in the UIViewController and the custom UIView in order to call the UIViewController touches methods when we…
Seb
  • 545
  • 9
  • 29
0
votes
3 answers

UIGestureRecognizers Dependencies

I have a UIView that has a UILongPressGestureRecognizer in it like this: movementGestureRecognizer = [[UILongPressGestureRecognizer alloc] init]; [movementGestureRecognizer setDelegate:self]; [movementGestureRecognizer…
Rui Peres
  • 25,741
  • 9
  • 87
  • 137
0
votes
1 answer

TouchesMoved method for two view controllers

In my app there are two view controllers. I wrote touchesmoved method in both the view controllers. But even if i touch on second view controller on simulator, the first VC touches moved method is called. // for VCOne -(void)touchesMoved:(NSSet…
Coder
  • 1,661
  • 4
  • 27
  • 50
0
votes
1 answer

difference of the two parameters in method like - (void) touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event

when i try to figure out how to deal with the touches in iOS, i saw some code use the first parameter "touches" some uses the second one "[event allTouches]". so anyway, what's the difference between them. in what situation use the first one, what…
Bruce Lee
  • 4,177
  • 3
  • 28
  • 26
0
votes
1 answer

Android: Rotated Map View -> Counter rotate touches -> weired issue

I added rotation to my MapView and it is working well except from the touches. I followed this code link for rotating the View and for counter Rotate the Touches. Now my problem. Even if there is currently no rotation the touch location is…
anonymous
  • 1,141
  • 3
  • 11
  • 20
0
votes
1 answer

Touches in Cocos2d, some bug

I've written the following program, which has to do the following: when user touch moving sprite it has to be removed from the scene. But, when I run my code the following thing happens: when I touch the uppest sprite it dissappears whith it…
mr.M
  • 851
  • 6
  • 23
  • 41
0
votes
1 answer

Cannot receive more than one touch in TouchMoved

I want to get the position of moving touches, so I need to get the array of touches which are moving in the TouchesMoved. I know how to get the array but the problem is that it only gets the one touch, and when I put more than one finger, it gives…
Peyman
  • 3,059
  • 1
  • 33
  • 68
0
votes
1 answer

How to reset the SneakyJoyStick back to its centered position?

I need to know how to reset the SneakyJoyStick back to its original centered position. The problem that I'm having is I have the joystick controlling my player and when the player reaches a door tile on a TMX map I have it push the new scene/map,…
stenger96
  • 224
  • 3
  • 17
0
votes
4 answers

Registering touches on CCSprite characters of a CCLabelBMFont label

The problem I encounter is that the positions of the CCLabelBMFont label and the one of the CCSprite characters composing that label seem to be different so I cannot manage the touch events... To test more in details this issue I tried this : …
PoohKun
  • 3
  • 1
0
votes
1 answer

Setting boundary conditions for object to traverse a path through dragging the object

I am developing an application in which there is one object which is draggable.The user can drag this object in a specified path, not outside the path. For achieving this I had to set the boundary conditions so that if the touch point is beyond that…
Gypsa
  • 11,230
  • 6
  • 44
  • 82
0
votes
1 answer

Dragging two images using multi touch

I am fairly new to touch event and i have a problem. I use the code above to drag two images on screen. The code works however when the the second finger touches the screen the first movement stops. So, the problem is related to multi-touch. I also,…
Pantelis Proios
  • 1,359
  • 1
  • 20
  • 32
0
votes
1 answer

Capture all main gestures on same view

I neet to capture all the main gestures. for example I want to be able to track when the user taps once, taps twice, taps once with one finger, taps twice with two fingers, when he pinches, when he rotates the fingers, when he drags one finger when…
Tono Nam
  • 34,064
  • 78
  • 298
  • 470
1 2 3
15
16