Questions tagged [touchesmoved]

Use this tag for questions related to touchesMoved:withEvent, a UIResponder event-handling method in the UIKit framework and MonoTouch.UIKit Namespace.

touchesMoved:withEvent: is a UIResponder event-handling method in the UIKit framework and MonoTouch.UIKit Namespace that is triggered when one or more fingers moves on the screen.

Along with touchesBegan:withEvent:, touchesCancelled:withEvent:, and touchesEnded:withEvent:, it is one of the primary touch event-handling methods.

Syntax Examples

func touchesMoved(_ touches: Set<UITouch>,
     withEvent event: UIEvent?)

- (void)touchesMoved:(NSSet<UITouch *> *)touches
        withEvent:(UIEvent *)event

[MonoTouch.Foundation.Export("touchesMoved:withEvent:")]
public virtual Void TouchesMoved (NSSet touches, UIEvent evt)

Resources

Related Tags

246 questions
-1
votes
2 answers

SpriteKit - How can I catch the event when the touch moves over a sprite, but didn't actually begin on the sprite

In SpriteKit, I want to catch event when touch moves over a sprite, but hasn't actually started on this sprite, but on another piece of SKScene. I can catch touchesBegan inside the SKSpriteNode A if the touch starts on it and then dragged over it,…
Vladimir Despotovic
  • 3,200
  • 2
  • 30
  • 58
-1
votes
1 answer

How can I invalidate a touches moved method in Objective C?

I have a touchesmoved method that moves a ball depending on the position of the user's touch. How can I stop the ball from being dragged after the user gets a "Game Over". Example - An NSTimer will be cancelled by calling [NSTimer invalidate]. How…
MrBear36
  • 1
  • 1
-1
votes
1 answer

Moving objects according to touchesMoved

So I'm trying to move an object using the touches moved function, however I'm not sure how to do that when the coordinates are not predetermined. This is what I've got going : override func touchesMoved(touches: NSSet, withEvent event: UIEvent) { …
Mats
  • 359
  • 2
  • 6
  • 13
-1
votes
1 answer

Finger tracing does not match touches on screen IOS

I am a new member of stack overflow, but I have been using the answers found in these forums for years now. I have a question that might be better answered with more thorough studying on the topic on my part, but I am doing a collaboration for one…
krayzk
  • 877
  • 1
  • 10
  • 19
-1
votes
1 answer

OpenGLES 2.0 Rotate by touchesMoved

I want to use the touchesMoved method to rotate an image on the screen. So if i move my finger from the right to the left side, i want my image to rotate from left to right. Is this somehow possible?
user1882812
  • 936
  • 5
  • 18
  • 41
-2
votes
1 answer

Set not working in iOS Swift game

I am making a game similar to Fruit Ninja using Swift 2.0 in Xcode v7.0. However, in the touchesBegan, touchesMoved, and touchesCancelled override functions, I am getting the three following errors: "Value of type 'Set' has no member 'anyObject'"…
Yajat
  • 3
  • 5
1 2 3
16
17