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

Unable to call touchesBegan/touchesMoved method inside viewController in iOS

I have a viewController which contains a UITableView. This viewController implements UITableViewDelegate, and UITableViewDataSource, and I'm also trying to implement the following methods: touchesBegan touchesMoved touchesEnded However, these…
syedfa
  • 2,801
  • 1
  • 41
  • 74
0
votes
2 answers

CGAffineTransformMakeTranslation follow UITouch Location

How can I get an image to follow a touch using CGAffineTransformMakeTranslation? It seems like CGAffineTransformMakeTranslation is only iterating the position of the image that is why it doesnt follow the touch on the view.
SleepNot
  • 2,982
  • 10
  • 43
  • 72
0
votes
1 answer

Moving a UIImageView without using the center property

Basically I would just like to touch the image and have it move with my finger across the screen without using theImage.center = touchPosition I don't want to have the center snap to my finger. I want to move the image from whatever point I…
user2037857
  • 83
  • 1
  • 8
0
votes
1 answer

touchesMoved:withEvent: stops to respond

I've applied this stackoverflow entry so that I can detect the touch as it moves from one view to the other. The subviews really detect the touch. However, I'm doing something more. I need the view that detected the touch to be removed from it's…
yoninja
  • 1,952
  • 2
  • 31
  • 39
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
1 answer

iOS: UIVIew touches delegates vs single tap recognizer

I am handling Touches delegates and UITapGestureRecognizer for single tap. Following are the methods. When I single tap on my View, I get three events in order of TouchesBegan, SingleTap, and TouchesEnded. Is there anyway to stop TouchesEnded event…
Paresh Masani
  • 7,474
  • 12
  • 73
  • 139
0
votes
2 answers

Creating a draggable image view

I have been searching the net for a long time and I have not found a concrete way of making an image view draggable. Here is what I have so far: tempViewController.h #import #import "MyRect.h" @class UIView; @interface…
Bogdan Vitoc
  • 139
  • 12
0
votes
1 answer

touchesbegan and touchesmoved

My question is when i hold down a button it has a sound at this time i touch on the same button of my another finger, it has a sound also. So can i disable another touch when i have already hold down a finger on the same button? As TouchesMoved as…
0
votes
1 answer

Dragging an view in limited boundaries not beyond that

After googling a lot and still not finding any solution, I am asking a question. My question is:- I want to drag my view in a particular area, beyond that, I do not want my view to drag but it should be draggable in the specified view. I am able to…
Gypsa
  • 11,230
  • 6
  • 44
  • 82
0
votes
3 answers

How to add images while moving finger across UIView?

I am having issues adding an image across a view while moving finger across the screen. Currently it is adding the image multiple times but squeezing them too close together and not really following my touch. EDIT: What I want: After taking or…
Luke Irvin
  • 1,179
  • 1
  • 20
  • 39
0
votes
2 answers

Get current touch in touchesMoved

I want to get the current object touched in touchesMoved. This is not to be confused with the touchLocation (CGPoint), but the actual object the user is touching. Using UITouch always returns the initial touch (as it says in the apple docs) rather…
EagerMike
  • 2,032
  • 1
  • 24
  • 40
0
votes
1 answer

touchesMoved not working fast enough

I want when user slides from left to right label counter updates from 1 to 5. If I swipe slowly, very slowly it works, faster then that and it doesn't work right? Is there another way to implement this? I have this code: -(void) touchesBegan:(NSSet…
1337code
  • 169
  • 1
  • 3
  • 11
0
votes
1 answer

touchesMoved for Multiple UIImageViews

I have multiple UIImageViews placed producing an NxN grid view on a UIView added programmatically, and all have their userInteractionEnabled property set to YES. EDITED I now have another issue, where if I start dragging on a UIImageView and hover…
Koray
  • 467
  • 1
  • 5
  • 12
0
votes
1 answer

Why does a UIImageView move all crazy when touchesBegan starts at the UIImageView?

So I create an UIImageView programmatically and I place it on an array. In touchesMoved I set the x-position of the UIImageView to the x-position of the touch. - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { for (UIImageView *b…
Jason
  • 123
  • 1
  • 7
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